- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
28 Posted Topics
[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 = …
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.
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 …
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); …
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 …
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 …
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? …
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 …
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.
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 …
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 …
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 …
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 …
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.
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 …
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 …
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
[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 …
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 …
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.
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 …
[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 …
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.
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 …
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 …
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 …
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 …
The End.
ninjaneer