|
MR ZarrinPour wrote:
in OnInitDialog and with ShowWindow(SW_HIDE)
Yes. But, you probably don't want to do this for a modal dialog.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi!
I'm working on an application displaying short medical video runs. I currently use ::StretchDIBits to get the pics on the screen.
It works all right, but one might want to enlarge the view by a factor of 2. This does still work, but the ::StretchDIBits-function appears to be quite slow when enlarging bitmaps.
Any suggestions? Alternative functions?
Thanks a lot in advance
Matthias
|
|
|
|
|
|
I use bilinear interpolation and direct draw in my medical applications. I fractionally scale 55 MB (grayscale mammograms 12bpp) images onto 5 mega pixel displays.
John
|
|
|
|
|
what are the options to use XML with C/C++ for windows, and which is good for a simple database project?
karanba
|
|
|
|
|
If you want to use XML in C++ you can use XML DOM or a third-party lib.
Rickard Andersson8
Here is my card, contact me later!
UIN: 50302279
E-Mail: nikado@pc.nu
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
I've been very happy with XML4C[^]. Easy to use, fast, open source and free!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I have written many tutorials on XML and VC++.
http://www.ltpb.8m.com/tutorial/listall.html
-Steven
CPACodeProjectAddict
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
|
There are lots of tools, libraries...
But why not using the MSXML? Microsoft is improving their products continuously, and moreover, the functions are docummented...
Using that you'll be able to use DOM and SAX...
it's your choice...
|
|
|
|
|
Hi out there.
I got a problem with an application compiled with Visual NET 2002.
My application will not launch when I perform a 'Start without debugging', but will start perfectly if I perform a Start (From the Debug Menu).
Once I've performed the start without debugging, I can see that my App is running (an even with 90% of the cpu), but it won't go further ! Same thing if I launch it manually by double-clicking my exe
A basic check has been to put a MessageBox at the very first beginning of the program (I can see it when starting From the 'start' menu).
This problem only happens with the release configuration of my projects (The debug exe works fine).
If anybody could Help, it would be great cyz that stuff is goin to drive me crazy.
Thanx in advance Mike.
|
|
|
|
|
The things I would check:
1. Project settings. Are they the same for release as they are for debug?
2. Paths. Perhaps you have relative paths in your code that are breaking when you run from a different spot.
3. Uninitialized variables. Sometimes the debugger will initialize these to 0 and mask out bugs that will manifest in the release builds.
"When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
|
|
|
|
|
Start the application and then use debug/process to attach to it. This will allow you to break the program and see if there is some looping problem.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Thanx for your tip.
But I had already tried this, but visual is unable to break into my process.
Actually it echoes the following message:
Unable to break into the process XXX. Please wait until the debuggee has finished loading and try again
|
|
|
|
|
Does you application use any DLLs that you or a 3rd party wrote? It sounds like on of them might be having problems in their DllMain.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Yes indeed. But I got plenty of'em (DX stuff, nvidia cg dlls, my owns...)
Gonna have a look at it, thanx
|
|
|
|
|
maybe usefull code put in ASSERT instead of VERIFY ?
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
I have a program,using a left menu of options, when the user click on the options to the left a new frame window opens up to the right.
I want the exit button to close the program. The Exit button is located in the left menu, not in the main frame.
I have used DestroyWindow(), but when I run the program and click on Exit the program crashes.
|
|
|
|
|
|
Or try the dirty way: exit(0);
|
|
|
|
|
|
I have a dll with a dialog box that gets run when the function is called. This uses MFC.
I want to spawn a new thread that the dialog box runs in.
Here's the exported function:
extern "C" __declspec(dllexport) void XducerSpecDialog(int px, int patxrx, int cred, int tfmid, void (*TimerCallBack)(), int (*callbackFunc)(int tfmid))
I thought I could just use _beginthread, but I'm not quite sure what to do becuase I'm using MFC and I have an instance of the class object that I use to call:
theApp.RunDialog
Can I just call the _beginthread(theApp.RunDialog,0,my_arguements)???
Thanks!
|
|
|
|
|
I think you need to use the MFC thread functions within MFC, AfxBeginThread(). Unless theApp.RunDialog has a function signature of a worker thread, you might want to take a different approach. Define a worker thread with a signature like UINT MyControllingFunction( LPVOID pParam ); and use that as the first parameter to AfxBeginThread. Pass theApp as a second parameter and from inside your worker thread, call RunDialog. Here's a sample from MSDN using a CMyObject instead of theApp...
UINT MyThreadProc( LPVOID pParam )
{
CMyObject* pObject = (CMyObject*)pParam;
if (pObject == NULL ||
!pObject->IsKindOf(RUNTIME_CLASS(CMyObject)))
return 1; // if pObject is not valid
// do something with 'pObject'
return 0; // thread completed successfully
}
// inside a different function in the program
.
.
.
pNewObject = new CMyObject;
AfxBeginThread(MyThreadProc, pNewObject);
.
.
.
|
|
|
|
|
Has anyone an example of using WMI in Visual C++ ?
|
|
|
|
|
hi,
see at microsoft.com
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example_creating_a_wmi_application.asp
hope it helps
dan o
|
|
|
|