|
Hi, I'm searching for a GUI Builder for Visual C++ 6 (no .NET or MFC). I mean drawing and putting the widgets, and the builder will generate all the code needed, like the WindowBuilder Pro for Smalltalk.
Anyone knows such tool for VC++ ?
regards
|
|
|
|
|
I want to use callback function and want to do it in OO way.
Can some1 plz tell me how to use callbacks in classes. I have done with using the static function. Some1 plz tell me using the non-static method.
|
|
|
|
|
Its not normally possible to provide a callback on a non static member function. The nearest way i know of is to pass the object pointer that the callback needs to be called on as the optional parameter to a callback. this then gets cast back to the correct object type in the static version of the function which then calls the non-static version on the pointer.
If you vote me down, my score will only get lower
|
|
|
|
|
|
See here.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi all,
I have a customer reporting a crash in one of my apps. The crash address leads me to believe my program is passing an invalid value to FileTimeToSystemTime() (in kernel32.dll). That should be easy enough for me to verify and fix (famous last words :-p), however I'd like to be able to reproduce the problem before putting blind faith into a fix I can't test on my own.
I'm suspecting he (the customer) has a file somewhere with an invalid date, and my app is retrieving that datestamp and blindly passing it along to FileTimeToSystemTime(). How can I force the creation of file with an "invalid" date? I tried creating a file, then calling SetFileTime() with "invalid" parameters--however it doesn't report any error (it returns TRUE) when I provide it three FILETIME structures that contain zeroes (NOT NULL pointers, which are valid), yet according to Explorer, the file's timestamps aren't changed at all.
I remember seeing files with timestamps of 1/1/1601 on an NTFS partition, and I'm suspecting this is the sort of thing my program is currently choking on.
Can anyone intentionally cause FileTimeToSystemTime() to crash (presumably, by providing it with invalid parameters)?
|
|
|
|
|
I'm thinking that it's going to be difficult to intentionally create a file with a bogus date.
Would it be easier to create a "debug" version of your application that logged the file dates? Then you can inspect the file for any weird numbers.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
That's my impression too.
I'm going to try to get more info out of this guy's system rather than try to replicate some unknown on my end...
|
|
|
|
|
Hello!
I have CEdit control which should receive symbols of several languages simultaneously. In other words, the user should enter, for example, russian and german characters in the same CEdit control. But I can't enter german unlauts when regional settings are not German. Why? What should I do?
My application is compliled with UNICODE support (#define _UNICODE).
Any ideas?
|
|
|
|
|
Maybe Set a ComboBox with languages you want supported... And when selected change the regional settings of ur CEdit to what the language is?... I dont know, ive never done anything with any other language support other then english... Just an idea?
/* Just a Human Trying to Live in a Computers World. */
|
|
|
|
|
The problem probably comes from the fact that the font you are using for your dialog box is not Unicode... In your resources, for that dialog, select the font to be Arial Unicode MS.
You could also do this programmatically...
|
|
|
|
|
Hello. I wrote some complicated function and need to make performance counter. I need to count time while the function is executed. How can I do that?
My best regards
|
|
|
|
|
http://www.codeproject.com/datetime/
|
|
|
|
|
I have not had a look at the link that was indicated but call
GetTickCount() at the beginning and the end of your procedure... and substract them... that's pretty accurate...
|
|
|
|
|
i started a win32 project and every line with cin or cout gives errors that the "cout :identifier is not found" have included
iostream
fstream
namespace std
cant think of anything else!
any ideas?????
please respond asap im under pressure with this one.
|
|
|
|
|
are you doing this?
#include <iostream>
using namespace std;
main()
{
cout << "this is a test" << endl;
}
|
|
|
|
|
Hi,
I am doing an dialog app in win32. I have created a progress bar. It is working correctly when I run my app in win2000. But when I run the app in winXP it is not showing the dialog containing the progress bar. what is the problem.pls help.
Thanks.
|
|
|
|
|
This is a stretch but could that XP machine be missing, or have an old, Internet Explorer DLL? Something that might help is to use the DS_NOFAILCREATE when creating the dialog. If the dialog shows up with this style, you know that one or more controls on the dialog are in error (usually an ActiveX control).
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello,
It would be so great if somebody can tell me how to test if a port on my PC is free or not.
My client PC, that I am building, has to inform the server on which port this last can send a RTP video streaming. And so, I want that my client PC find an unused port, to be sure that the transmission will succeed every time.
Many thanks for all kind of help and good evening,
alain
There is no way to happiness, happiness is the way !
|
|
|
|
|
I have some app that has a "run" button, that update some chart on every press.
But I have to manually press the button every time I want to update the chart.
I want to update the chart every 1 minuete.
Can I simulate the pressing of the "run" button from external application?
I have thought on somthing like sending an event to that app.
First, How can I know the event which sent upon the "run" button pressing, and then, can I sent that event to the app from my little external app ?
I really need help here... 10X !
|
|
|
|
|
yaniv_av wrote:
I want to update the chart every 1 minuete.
Can I simulate the pressing of the "run" button from external application?
You don't need an external app to do this. Just create a 1-minute timer that calls your "Run" button's handler. See the doc on SetTimer() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I don't have the code of the application.
It's an commercial app, and I can't change it ...
I need a way to simulate the button press from outside that app.
|
|
|
|
|
This can be very easy or very hard depending on the type of application.
What you can do is use Spy++ to find the ID of the button in the third party app.
Then from your application you can call FindWindow to find the main window of the third party application.
If the button is a child of the main window all you have to do is post a BN_CLICKED message to that window.
If owner of the button is a child of the main window, then you need to do some digging to find the handle to the owner window.
AliR.
|
|
|
|
|
I need something similar to DateTimeCtrl with DTS_UPDOWN option with up and down arrorw for increase/decrease the numbers within a set range.
|
|
|
|
|
You mean something like a textbox and a spincontrol?
No hurries, no worries.
|
|
|
|