|
I think the easiest way to do that would be to generate code in an intermediate language, like C. Then you can compile and link using standard tools. In addition you'll take advantage of the optimization of the intermediate compiler that way.
/moliate
The corners of my eyes catch hasty, bloodless motion -
a mouse?
Well, certainly a peripheral of some kind.
Neil Gaiman - Cold Colours
|
|
|
|
|
You'll need to become intimately familiar with the PE file format.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I am facing problem in implementing edge detection for 24 bit BMP images.
The algorithm 3*3 mask works fine with 400*400 size image, but not with 800*600
the error message pops up as memory execess voilation .particularly it says memory is read only
If anyone knows how to implement the above please write to me ASAP.
OS win 2000 prof , VC++ 6.0
Thanks in advance
nagens
|
|
|
|
|
Hello
I am trying to make a program that tells me what the local machine name is?
I use GetMachineName() function but it says that it needs gpedit.h and it is not on my box. So where can I find it? I searched google and nothing.
|
|
|
|
|
You have to get a newer PSDK to get that file. It did not come VC6. It is in the Feb 2003 PSDK (the latest one I have with VC6) and it came with VC7.0.
How about using GetComputerName() or GetComputerNameEx( ) instead?
"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!
|
|
|
|
|
I have visual studio 2003 but there is not gpedit.h there either.
|
|
|
|
|
Spiritofamerica wrote:
I have visual studio 2003 but there is not gpedit.h there either.
My install of VS 2003 has the file in
Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include
I'm guessing an updated platform SDK installed it.
Michael
CP Blog [^]
|
|
|
|
|
I have tried to code a pi-calculation program (gauss-method), but I can´t get enought decimals on it. I tried to install apfloat, but I just got some weird error messages and install won´t succeed. Even the author of apfloat couldn´t figure it out, why I´m getting them.
Is there some "easier" way to get more decimals (or even some other way)? Few million should be enought for a while Just kidding...million is enought at the moment.
|
|
|
|
|
Is anybody can give me a code sample for getting the MS Outlook address book.
I mean a code sample that retrieves the MS outlook address book.
Thanks.
|
|
|
|
|
|
I am trying to port some WinCE code to VC++. I am having difficulty initializing a new thread with CreateThread().
WinCE:
WinCE_Program.h
DWORD NewThread(LPVOID);
HANDLE hNewThread;
WinCE_Program.c
{
hNewThread = CreateThread(NULL,0,NewThread,0,0,&dwThreadID);
}
The above works fine for WinCE.
If I use this code for VC++ 5.0, I get an compiler error message:
"cannot convert parameter 3 from unsigned long (void *) to unsigned long (_stdcall *) (void *)"
What do I need to do to correct this?
Thanks
John
|
|
|
|
|
|
Read the error message
You're passing a function with the signature unsigned long (*)(void*) but CreateThread() expects the signature unsigned long (_stdcall *)(void*) . So you need to add the __stdcall calling convention to your callback. The usual way of doing this is with the CALLBACK or WINAPI macro (which you'll see in the ThreadProc help page).
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
Magnae clunes mihi placent, nec possum de hac re mentiri.
|
|
|
|
|
I would like to know how to write applications with MS outlook.
For example I want to know how to get the address book information, how to send an e-mail, etc ...
Where can I found a reference for these API's ?
Thanks.
|
|
|
|
|
MS OutLook Api are very well Documented in MSDN library:
Just Type OUTLOOK in you local copy of MSDN, you will got all you NEED
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
What is the difference???? I can't understand, isn't it the same thing???
|
|
|
|
|
i need a little pascal language knowledge,
who can give me a good link for that?
is semicolon ";" useful in pascal? i am really confused.
thx
includeh10
|
|
|
|
|
In Pascal, the semicolon is used to separate (not terminate) statements. A separator is required at the end of the statement, unless the statement is followed by another separator (i.e. a block terminator like end or until ).
The following code fragments are both valid:
if (someCondition())
then
begin
y = 0; { semicolon required }
x := 1 { semicolon optional because next token is "end" }
end;
if (someCondition())
then
begin
y := 0;
x := 1;
end;
Since it doesn't hurt to always separate statements with a semicolon, it's best to just always use it (as in C).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
just a little note
anything between {} is a multiline comment
|
|
|
|
|
|
Hello,
I'm interested in creating a menu bar, which is very similar to the explorer menu bar.
I've found some information here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/faq/iemenubar.asp
In this article it is explained that the menu bar is actually a modified toolbar.
The problem I have is how you could achieve the appearance of the menu. (the bar a the top)
The menu items are totally flat and if you move your mouse pointer over a specific item it is highlighted. (the background gets blue, the text color switches to white)
Did they implement their own drawing routine or did they use some standard drawing mechanisms?
|
|
|
|
|
If you don't care about menu customization, you could instead just use Bruno Podetti's excellent NewMenu[^] class.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi, I'm about to make a class which can take care of some console IO, but i have a problem, in the bottom of the header(under class definition) i have added a function like this:
static inline cIOManager &endl(cIOManager &io)
{
io.CursorPos(io.StartX(),io.Y()+1);
return io;
}
But the problem is that i gets the following linker errors:
IOManager test error LNK2019: unresolved external symbol "public: void __thiscall cIOManager::CursorPos(short,short)" (?CursorPos@cIOManager@@QAEXFF@Z) referenced in function "class cIOManager & __cdecl endl(class cIOManager &)" (?endl@@YAAAVcIOManager@@AAV1@@Z)
IOManager test error LNK2019: unresolved external symbol "public: short __thiscall cIOManager::StartX(void)" (?StartX@cIOManager@@QAEFXZ) referenced in function "class cIOManager & __cdecl endl(class cIOManager &)" (?endl@@YAAAVcIOManager@@AAV1@@Z)
IOManager test error LNK2019: unresolved external symbol "public: short __thiscall cIOManager::Y(void)" (?Y@cIOManager@@QAEFXZ) referenced in function "class cIOManager & __cdecl endl(class cIOManager &)" (?endl@@YAAAVcIOManager@@AAV1@@Z)
I don't know why these are there, in the definition of the class i have:
inline void CursorPos (short pX,short pY);
...
inline short Y();
...
inline short StartX();
And in the source(.cpp file) file i have these lines:
inline void cIOManager::StartCursorPos(short pStartX,short pStartY)
{
...
}
...
inline short cIOManager::Y()
{
return mCursorPos.Y;
}
...
inline short cIOManager::StartX()
{
return mStartCursorPos.X;
}
So i really can't understand why i gets linker errors, can someone please explain?
|
|
|
|
|
|
Hi!
i have a client server application
the server waits for the client to establish a connection and then recv some data
my problem is if the client sends one byte of data the server gladly acepts it but when the client sends two or more bytes then after sometime the client receives one byts first then the next byte(s) .As s result byte shiftin takes plave and my programs goes haywire
Help!!!!!!!1
|
|
|
|