i dont have control on library files then how can i compile or change the struct name the library, i should have to do some thing in my application, like wraper class,or proxy but iam not sure,
can any one help in this case
We can set the seed value for rand() function using srand(seed), but how to set the maximum. I want to generate random numbers between 1 to 10. Using the mod(%) operator without setting max limit is one way, but is there any function for setting max limit?
Thanks & Regards,
This will not produce evenly distributed random numbers!
‘rand’ generates random numbers from 0 to ‘RAND_MAX’ (32767).
Below if a list of ranges, each range maps from 1 to 10 (e.g. 0->1, 1->2, ..., 10->1, 11->2, etc):
Do you mean int , double or float to "CString".
If not so, pls try CString.
There are functions like itoa(), atoi() etc to convert from int to string, and vice versa. Doing google search with "int to CString" will display many solutions.
I am sorry, I saw your post now only.
If you still need help, please post a new message, so that all people can see your question.
I've written a mfc application which uses dundas gauge controls (together with windows forms). Everything works fine in debug or release mode but when I try to install the software on a different machine (windows XP, freshly installed) the application don't even start. Actually the installation works fine but the software don't run. I've checked all dependencies with dependency walker and also included "DundasWinGauge.dll" in the setup project (VS2005 setup wizard). DotNet is installed on the target machine. If I exclude the dundas gauge control then the application also runs on the target machine.
I use TeeChart as ActiveX Control but this doesn't seem to make problems. It is the only ActiveX control which I use. When I build the setup project with the ActiveX control and without the gauge control (dll) everything works fine. The gauge control don't have any ActiveX component.
I don't know wether the problem is due to the manifest file. I have know experience with mixed-mode setup projects. I just added the exe file to the setup wizard and when I compile the setup project it recognizes the dependency to the dundaswingauge.dll which is then added to the setup project. When I exclude the dundas gauge control from the project. The application runs fine also on the target machine. The dundaswingauge.dll doesn't show up in the manifest file. Might this be the problem?
Last Visit: 31-Dec-99 18:00 Last Update: 29-Jul-21 22:38