|
use CreateDIBitmap or CreateBitmap
Regard's
Dhana
|
|
|
|
|
A text file has no pixel values, only text.
Do you mean that you want to take the contents, such as "Hello, World" and generate a bitmap image of that text using a particular font and size?
Steve S
Developer for hire
|
|
|
|
|
Can you be more specific a text file is text I think you need to read text file and create a bitmap for it
|
|
|
|
|
hello
i am working with automation in vc++6.0 .Can anyone tell me about how can i transfer bitmap images in the MS word using automation from my VC++6.0 application.If someone have sample application send me .I have already done this thing with the MS Excel .Now need in MSWord .Plz help me on this topic.
sukhpreet
|
|
|
|
|
If you have already done this with Excel, how?
I ask because you might well be able to use the same technique with Word.
Steve S
Developer for hire
|
|
|
|
|
I think my MFC app causes memory leak by "new", how to detect troubles of memory leak of the app?
I only want to detect for my app, not for whole system.
any suggestion for a tool or something else?
|
|
|
|
|
|
Make sure you have the following at the top of every source file:
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
If so, leaks should be reported when your application exits.
|
|
|
|
|
includeh10 wrote: think my MFC app causes memory leak by "new", how to detect troubles of memory leak of the app?
for that i prefer AUTO_PTR.... any way you can try CMemoryState Class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Robert Edward Caldecott wrote: ...leaks should be reported when your application exits.
But only if it was compiled in Debug mode and F5 was used to start it.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
If i create a thread with AfxBeginThread, how can i later on on some point check if the tread is still running. For example Tread class of Java has a "isAlive()" method for that. But it seems that the CWinThread class that AfxBeginThread returns has no such thing.
|
|
|
|
|
Get the handle to the thread and Call GetExitCodeThread then see if it returns STILL_ACTIVE.
|
|
|
|
|
In Some Old Code some validation is done in WM_KILLFOCUS.
Now We know that this is not a good way, But we don't wan't to change the code.
If Some User's closes the dialog using "Top Right Cross Button" the dialog and its Data
becomse invalid and after that the KillFocus comes.
In This case we dont want the killfocus event to happen.
Please suggest.
Stuck in a Problem
|
|
|
|
|
Indian Idol wrote:
In This case we dont want the killfocus event to happen.
maintain a FLAG, make it false when you receieve
SC_CLOSE in WM_SYSCOMMAND!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hi,
I have thread id and Process id of the a application, now i want to get the main window handle of the application.
I know there is EnumThreadWindows function which can achive the same, but i am not sure how to use it and also i want to store the window handle after the call to EnumThreadWindows function, I have seens lot of samples which basically send event notification to the callback function for EnumThreadWindows which i don't want to do.
Thanks in advance,
Abhi Lahare
|
|
|
|
|
Hello,
I want to launch a perl script as the pre-build step with Visual C++ .NET 7.1.
But the paths to the different EXE files I want to use in this script are not known, even if they are in the PATH environment variable. If I launch my script by hand, and not by Visual C++, it works well.
After many trials, it seems that the paths memorised in PATH are not known in the context of the pre-build command line.
Is there a way to remedy to that?
Thanks in advance
Nolyann
|
|
|
|
|
In our tests a simple pre-build step like "perl -v " is working with no problem, i.e. the perl application is found according to PATH environment variable. It is difficult to reproduce your problem. Maybe you should show us your pre-build command?
|
|
|
|
|
Hello Viorel,
Thanks for answering.
Here is the non-working command line: perl.exe ..\create-getrevision.pl
Here is the working command line: C:\Perl\bin\perl.exe ..\create-getrevision.pl
This command is entered in the Project Properties dialog box, build results/before the build. These terms are maybe not the right translation of my german version of Visual C++...
C:\Perl\bin is in the PATH of the system variables part on my Windows XP.
For the non-working case, I get the following error message: The command "perl.exe" is either not correctly written or cannot be found.
Any idea?...
|
|
|
|
|
the following code cannot work under Windows 98.
dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE; // default
dwAccessMode = GENERIC_WRITE | GENERIC_READ; // default
fileHandle = CreateFile("\\\\.\\C:",
dwAccessMode,
dwShareMode,
NULL,
OPEN_EXISTING,
0,
NULL);
the error code is 2, system cannot find the file.
Who can give me advice? Thanks in advance.
|
|
|
|
|
MSDN documentation for CreateFile function says that in Windows Me/98/95 "the file system restricts CreateFile to creating or opening files. You cannot create or open the [other] objects [...]". Therefore it seems you cannot open a volume in Windows 98.
I think you have to search for other approach for your problem. Maybe you should explain it here; perhaps it can be solved with other functions.
|
|
|
|
|
As Viorel said, you can't in Win95, 98 and Me.
But check out this article[^]
It doesn't give you the complete solution, since there are no logical sector to physical sector conversion, but you can make one yourself, using the information from the IO call IOCTL_DISK_GET_DRIVE_GEOMETRY
|
|
|
|
|
Amanda Davis wrote: the error code is 2, system cannot find the file.
Of course. MSDN plainly states, "Windows 95/98/Me: This technique does not work for opening a logical drive. Specifying a string in this form causes CreateFile to return an error."
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
however I want to use this handle to pass ASPI command to the device.
I really lost my way.
|
|
|
|
|
HI,
How to call "GetDlgItem(IDC_Button_Search)->EnableWindow(FALSE);" inside a static method?
The above statement throws error inside a static member function.
Thanks
Thanks
Raji
|
|
|
|