|
There is no doubt that problems show up on multi-processor machines that don't on a single cpu. You could add a cmd line option to your app to force it to use a single cpu.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
I had thought of that but I really want to do it without recompiling because this is our customers production environment
|
|
|
|
|
I m using MFC dialog based application.
i want to make it skinable with GIF images
in CP there are Exampls but thay use BMP files
wts the way for GIF to use
thnx
Regards.
|
|
|
|
|
The approach for using GIF as skin images is precisely similar as to using BMPs. The difference is that you must first run the GIF data stream through a decompressor to get actual image data. BMP images are not encoded, they are simply raw image data. Thus they don't need a decompressor.
So, find a tutorial that uses file-based images to skin the dialog. Then implement this procedure, but include a GIF-decompressor routine.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
i search but not find good one.
can u plz tell me any link or help
thanx
Regards.
|
|
|
|
|
Sorry, none that I know of..
You'd first need to learn how to use a bitmap as a skin (lots of examples available at CP). Then, following the same approach, just add a GIF file and the decoding as part of the process.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hello, I'm getting this error:
Run-Time Check Failure #2 - Stack around the variable 'UniqueID' was corrupted.
Here's the function that generates it
<br />
__declspec( dllexport ) BYTE* LaunchMe(BYTE* id)<br />
{<br />
SERIAL *serial=NULL;<br />
BYTE ProductID[BUFFER_LENGHT];<br />
BYTE UniqueID[16];<br />
char *ProductID_Processed=(char*)malloc(BUFFER_LENGHT);<br />
<br />
serial=(SERIAL*)malloc(sizeof(SERIAL));<br />
<br />
memset(serial, 0, sizeof(SERIAL));<br />
memset(&ProductID, 0, BUFFER_LENGHT);<br />
memset(&UniqueID, 0, 24);<br />
<br />
getHardDriveComputerID (serial);<br />
<br />
if ( GetProductID(ProductID, BUFFER_LENGHT) == false) return false;<br />
ProductID_Processed=ProcessProductID(ProductID, BUFFER_LENGHT);<br />
<br />
if (ProductID_Processed == NULL) return false; <br />
CalculateUniqueID(serial->serial, ProductID_Processed,UniqueID);<br />
<br />
memcpy(id, UniqueID, 16);<br />
<br />
return NULL;<br />
<br />
}<br />
Which is the cause of that error? What "around" means?? I get this error some other time also, and google wasn't able to help me, thanks in advance
Paolo
|
|
|
|
|
Don't know whether this is the same as your case, but I once had a similar problem and it turned out the cause is because of stack overflow. Maybe you can check whether you have enough stack space to hold ProductID? What's the value of BUFFER_LENGTH?
|
|
|
|
|
Hi,
The problem is pretty straight forward. You are declaring UniqueId[16] and in
memset you are using 24.
Change it to
memset(UniqueID, 0, 16);
That should solve the problem.
Regards,
Mahadevan
|
|
|
|
|
hi,
i want the source code to the desktop sharing application in vc++.net
can anybody help me.
|
|
|
|
|
I would like to switch IP address for my pc, can someone help?
|
|
|
|
|
On the network ? Programatically ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I have this notebook that is for office and home and of different subnet and DNS. I know that script can do it but I would prefer VC++.
|
|
|
|
|
Let's say my application needs to read some configuration information from a file. I would like that file to be stored in the same folder as the executable. How do I tell the application to look in its own "home" folder for the config file? I expected that that folder would be the default if no path is specified in the file name, but it doesn't always work. (For instance, Visual C++ saves the executable in the "Release" subfolder of my project folder, but if I use the "Execute" command to run it, it looks for the config file in the project folder, not the Release subfolder!
I can't hardcode the full path of the config file, because I want to let the user install the application in a folder of his choice. Help!
|
|
|
|
|
GetModuleFileName()
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Hi,
We know XP supports hibernating the whole system(when you power it off). I wonder if it is possible by programming to hibernate a specific application without powering the XP off? If so, generally, how to do that? What apis to call?
Any help will be highly appreciated.
Thanks!
duckpond@2004
|
|
|
|
|
|
it is really a very good reference. Thanks a lot
|
|
|
|
|
I have a win32 dll, and I want to use GetModuleFileName in it. But if I go to include stdafx.h or windows.h, I get bizarre compile errors. I have another win32 dll in which theres no problem. This one has a bunch of static ints and I get errors like:
error C2062: type 'int' unexpected
error C2062: type 'int' unexpected
error C2059: syntax error : ')'
error C2062: type 'int' unexpected
error C2062: type 'int' unexpected
etc.
The file has a ton of forward declares like:
static int
acf_llrt( float *hfdata, param_type *prm_type, int *m, int *n,
float *dtemp, int *idat1);
As soon as I remove the #include all is well.
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
|
|
|
|
|
hi folks
i'm interessted to develop (C++ with Visual C++ as IDE) a plugin for the MSN Messenger that will be integrated in the messenger and started with the messenger. does anyone know how to develop a plugin for the MSN messenger?
|
|
|
|
|
See this MSDN link: Windows Messenger API[^]
There's a scarce amount of examples available for writing a Messenger add-in. The best approach would be to write an external application that interfaces with the Messenger, and adds to it. But as for writing an authentic Messenger add-in, then sorry, nothing I can do
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Is there an MFC function to terminate an application? (like AfxAbort(), but without the ugly error message)
[insert witty comment here]
bdiamond
|
|
|
|
|
This line causes terminate the application:
::AfxGetApp()->ExitInstance();
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|
|
I just ended up calling my CMainFrame class's OnClose() function, since that's where I'm at when I need to do it anyway, and it works fine. I tried ExitInstance first, and it didn't work right. thanks, though!!
[insert witty comment here]
bdiamond
|
|
|
|
|
Mmmm...
In that case your question will be: "Howto close correctly the main frame window in a MFC application?"
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|