Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~7K People Reached

28 Posted Topics

Member Avatar for matlark

[QUOTE=matlark;638717]I am very new to programming and don't understand what I need to do to implement the modulus. I don't see how it is going to get me the correct number of bills. What is floor rounding and subtraction? thanks[/QUOTE] sorta like this... [code] int x = 1234.56, thousands = …

Member Avatar for suiluj
0
744
Member Avatar for Jennifer84

this is because: Return Value for string.find(...) is: 1) The position of the first occurrence in the string of the searched content. or 2) If the content is not found, the member value npos is returned. so your if(...) always evaluates to true.

Member Avatar for dpreznik
0
148
Member Avatar for ninjaneer

background: I am currently working on a project that will require me to grab some audio from an electronic stethoscope and process it for use within a larger program -- I've been looking into ways to do this and ran into a post on MSDN that was talking about [QUOTE]"taking …

0
113
Member Avatar for ninjaneer

hi! I'm trying to get the following C++ class (contained in a DLL): [code] __declspec(dllexport) class ThreadManager { public: __declspec(dllexport) static UINT32 setThreadPriority(UINT32 tPriority); __declspec(dllexport) static UINT32 setPriorityClass(UINT32 pClass); __declspec(dllexport) static UINT32 setProcessorMask(UINT32 pAffinity); __declspec(dllexport) static UINT32 changeMATLABSeed(UINT32 inputSeed); static BOOL setHandles(HANDLE* thread, HANDLE* process); __declspec(dllexport) static BOOL testFun(UINT32 testInt); …

Member Avatar for Ramy Mahrous
0
1K
Member Avatar for jonathanasdf

be sure to disable or change the default close behavior... In java at least close is defaulted to do nothing so you have to set it yourself... I've never built a GUI in C++ before so I wouldn't know where to begin, but likely the pitfalls will be similar! Overload …

Member Avatar for fskreuz
0
136
Member Avatar for ninjaneer

Hello again, daniweb. I have created a managed C++ GUI using windows forms that needs to call some functions in an unmanaged C++ DLL that was created by the MATLAB compiler. The functions from the MATLAB compiler need to be run in their own thread in the background while input …

0
80
Member Avatar for ninjaneer

Hello, I have a C# GUI that is supposed to call a backend I have in a C++ CLI/CLR shared library. That library calls another DLL that was created by MATLAB, but I can't get the second DLL called... Is it a mistake to put the backend in a DLL? …

Member Avatar for ninjaneer
0
173
Member Avatar for bpacheco1227

I'd write a lil' function for each 'weapon type' as you've currently got it sectioned... then in main you'd have only function calls like: [code] int main( ){ String character = getCharacterSelection( ); String weapon = getWeaponSelection( ); /*target practice takes char and weapon and does the random dance to …

Member Avatar for mitrmkar
0
200
Member Avatar for pizzafiend

this one ain't mine, it's Monzy's and it's great: Your mom circulates like a public key, Servicing more requests than HTTP. She keeps all her ports open like Windows ME, Oh, there's so much drama in the PhD.

Member Avatar for maydhyam
1
294
Member Avatar for ninjaneer

I am getting the following unhanded exception: [COLOR="red"]An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E) [/COLOR] which crashes my code when I click a button on my C# GUI. The button calls a C++ Backend, and …

Member Avatar for ninjaneer
0
144
Member Avatar for ninjaneer

I have a C++ dll that I am trying to call in another section of code (happens to be C#) currently I am getting the following error: [COLOR="Red"]Additional information: Unable to load DLL 'MATLABThreadLibrary.dll': The specified module could not be found. [/COLOR] even though I believe I've got all the …

Member Avatar for ninjaneer
0
236
Member Avatar for ninjaneer

I've been googling this topic for a while, but I haven't found a very clear tutorial. I have created a GUI in C# (it's so easy!) and now I want to implement a C++ backend that I've got that is already created (also the C++ backend uses Microsoft Foundation Classes …

0
71
Member Avatar for ninjaneer

I'm writing a GUI for a C++ program I have already written. Currently I need to either port a section of C++ code using MFC to the C# program, or use a wrapper and call the functions from C#. I'd like to be able to create cWinThreads to do some …

Member Avatar for ninjaneer
0
213
Member Avatar for balla4eva33

yes, but perhaps you want to type [icode]using namespace std;[/icode] in your files either that or type [icode]std::string blah = "foo";[/icode] without knowing what problem you're having, I'm not certain what the solution is.

Member Avatar for CoolGamer48
0
158
Member Avatar for msupstream

basically a friend class would be a class that is allowed to access private variables of the class it is friends with as in dog can access cat's age by calling getAge(); from within the dog class... as far as how kitty and puppy work? cat has a friend class …

Member Avatar for Narue
0
159
Member Avatar for gregorynoob

assuming your map isn't too huge, couldn't this be solved by: 1) find a path to the cheese, set to 'shortest' 2) find another (unique) path to cheese, test for 'shorter than current shortest' 3) update 'shortest' as needed 4) terminate after no new paths are possible depending on map …

Member Avatar for gregorynoob
0
191
Member Avatar for camthalion95

I found one 'wrong' thing in the title of the post: you meant to write "help with MENUITEM" and another thing that's 'wrong' exists in the body of your post itself: you forgot to write what the problem was... you only wrote Menu.RC

Member Avatar for camthalion95
0
194
Member Avatar for integer*09

[QUOTE=Prabakar;639352]I wrote 2 programs. 1 prog constantly rights a file. 1 program reads the content & finnaly tries to delete the file. I run the first program & then the second. the second was able to get the data from the file( without updated records) but as [B]AD[/B] said the …

Member Avatar for ninjaneer
0
148
Member Avatar for prab

once you get started with your phone book, I'd suggest these two classes [code] class personalNumber{ public: personalNumber(string, number); string getName(void); int getPhoneNumber(void); //... private: string name; int number; //... } [/code] and [code] class businessNumber{ //... } [/code] object orientation means separating things into discrete, identifiable units... it's kind …

Member Avatar for ninjaneer
0
626
Member Avatar for curiousa

google "C++ integral class"... it might be in the standard math library (I doubt it) ... but there's a good chance it's been done before. No sense re-inventing the wheel.

Member Avatar for ninjaneer
0
158
Member Avatar for ninjaneer

Calling any multi-thread wizards. Here is a copy of the relevant parts of my main function... [code] CWinApp theApp; [COLOR="Red"]//the application's handle? not sure...[/COLOR] using namespace std; UINT callProcessThread(LPVOID minutesSpent); //worker thread function, process output UINT initializeProgram(LPVOID flag); //worker thread function, load MCR void inputCalculateOutput(void); // function that sorts data …

Member Avatar for ninjaneer
0
466
Member Avatar for cam875

[QUOTE=cam875;635558]My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up. [/QUOTE] for the sake of clarity your code might be condensed: [code] void AmasiVillage() { CharacterLocationID …

Member Avatar for ninjaneer
0
121
Member Avatar for iffEngineer

I love my job too... my job will someday be replacing the guys who replace the guys who replaced the people who used to do all the work... eventually people will have nothing to do for a living except be replaced by robots, and then I'll retire.

Member Avatar for ninjaneer
0
150
Member Avatar for k.samdani
Member Avatar for Shaun32887

I was about to :-O if you had actually solved permutations recursively. To iterate is human to recurse is devine as they say... Shaun, it's likely you've got the parsing issue down by now (I think the CPP String class has built in parsing with substr()) so I'll make the …

Member Avatar for Shaun32887
0
218
Member Avatar for ninjaneer

I've been floating around the web looking for a way to add a cap to my Cpp program's processor use, and so far I've only come across a few painful looking Cpp-to-assembly tutorials and a bindprocessor function in an IBM API. I was wondering if any of you wizards knew …

Member Avatar for ninjaneer
0
113
Member Avatar for ninjaneer

I feel it's time to cast my line in here... I'm just about to embark on some GUIing myself and I have but one requirement thus far: I must be able to use cWinThreads or inherit from cWinThreads in order to control my processes. My program will be used to …

Member Avatar for Ancient Dragon
0
284
Member Avatar for ninjaneer

Hello community. I am writing a program that will use multiple threads to run MATLAB functions inside of Cpp by using the MATLAB compiler to create a DLL. I have already written the MATLAB DLL and I have everything linked up just fine, but now I need to split this …

Member Avatar for Ancient Dragon
0
141

The End.