|
I am not. I am trying do a language translation software where what you type in english will translated into a different font (a different language).
|
|
|
|
|
good luck
Don't try it, just do it!
|
|
|
|
|
Hey,
Everybody know how to create a text which circling (running around) the button just like the RGNCreator in the codeguru/tools.
Please help me!!!!!!
|
|
|
|
|
isn't it a bitmap ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
I have created tree control in vc(win32) but unable to load tree structure of the directories in the system.im actually trying to make a Windows explorer like application.if any one knows how to DISPLAY DIRECTORIES IN TREE STRUCTURE..please help me...
|
|
|
|
|
|
|
Thanx ravi for the link...but i'm working in plain Api..no MFC..anyways thanx..if u find any more links please do reply..
|
|
|
|
|
I'm using the "delete" operator to delete linked lists I have in my application. Two of the limked lists delete fine, but the third does not. I get a message in debug "Damage after Normal block(#630) at ..." and the memory address.
It shouldn't be affected by the other lists since it doesn't work even if I change the order
Any ideas or possible solutions would be greatly appreciated
Keck
|
|
|
|
|
|
how did you allocated them ? how do you delete them ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
allocated with "new" , removed with delete
suddenly had a thought there - I'm at home now, so I can't see it but |I think part of the new class is a structure - would be the problem?
Thanks for the response guys
Keck
|
|
|
|
|
You aren't allocating enough memory to hold you data. There really isn't much more than can be said. One of the most common causes is not providing room to store the NULL in a character string.
int nLength = strlen (pszInput);
char *psz = new char [nLength];
strcpy (psz, pszInput);
*BOOM*
it should have been:
char *psz = new char [nLength + 1];
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
are you sure - the problem is ony when I'm deleting data, and I found a way around it in my program where I add more data and the profram works fine
Keck
|
|
|
|
|
I am trying to access parallel port using CreateFile but it is not working how to do this
|
|
|
|
|
|
Hello!
I've got handler to device context (HDC)
and array of bytes in order R,G,B,R,G,B,...
i use SetPixel for drawing above picture, but it is so slowly for large images and looks awful
Does anybody know any faster or fastest idea of displaying such RGB array?
Thanks in advance!
|
|
|
|
|
Don't use SetPixel as it is not designed to be used for displaying an entire image. You need to create a bitmap header in memory and then point the bits parameter to your array. This generally has additional problems as you must make sure that the number of pixels in a line is a multiple of 4, and are arranged in the BGR vs RGB order.
Look up CXIMage for some more information and there are likely some other tutorials in that same section.
J.
----------------------------
|
|
|
|
|
Thanks for informations, i've found CXIMage and was very usefull tutorials.
Take care!
Thank You both.
|
|
|
|
|
You might want to have a look at CreateDIBSection.
If the image is put in main mem you are only limited by available memory bandwidth when modifying it but blitting it (to video memory) is a bit slower. If you put it in video memory blitting is almost instant (well, depending on how fast/slow your video card is) but modifying the bitmap becomes a bit slower.
|
|
|
|
|
Can someone please post the lines I need to add to my INCLUDE & LIB paths to use the latest Platform SDK's with VC6?
I've been trying to use the "Setup Environment" programs that comes with the SDK, to no avail. I can neither get the paths into my VC6 options-directories nor my environment.
My attempts at setting these directories by hand have just left me with tons of build errors. Mostly "operator new does not take 3 parameters".
|
|
|
|
|
Ideally, you need to have the include, lib and bin paths in your options so that the PSDK ones are topmost. That lets you use the latest version of MIDL etc, although you need to be aware of the /no_robust switch for newer versions, as /robust is now the default.
I have the following;
"Executable files"
C:\Program Files\Microsoft SDK\Bin
C:\Program Files\Microsoft SDK\Bin\WinNT
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT
C:\WINNT\system32
C:\WINNT
C:\WINNT\system32\WBEM
"Include files"
C:\Program Files\Microsoft SDK\Include
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\WINNT\system32
C:\Program Files\Common Files\System\Ado
"Library Files"
C:\Program Files\Microsoft SDK\LIB
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
"Source files"
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC
Hope this helps.
Steve S
|
|
|
|
|
struct Data
{
int x;
int y;
};
Data* pData = new Data[30];
how do I access value x in item 5 in the Data array
pData[5]->x = 3; // err
pData[5].x = 3; //err
/Mathias
|
|
|
|
|
The first solution is correct. The fifth item is index 4.
Kuphryn
|
|
|
|
|
My bad.
pData[5]->x = 3; // err
is not error.. it works.. i got a complie error. but now when i watch more carefully I saw that
the error was something else.. aahh stupid me.. been working to much today.
/Mathias
|
|
|
|