|
But how can i include .cpp files ?
I must write #include "myfunctions.cpp" ?
If not, please write example ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You need to include the .h where is declared the function, in each .cpp where you want to use the function. You will see that the function is Global, but it only will can used from these cpp files.
Best Regards
Carlos Antollini.
Today Is Friday!!! Party and
|
|
|
|
|
Hi all,
How can i change language in Access 2000 database ?
I don't want to change language run-time ...
Only in Access 2000 editor ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi,
The point: I use Visual C++ Enterprise and I want to draw a circle with openGl.
I can compile my circle.c but the linker is not quite amused about it and throws the (german only) exception:
--------------------Konfiguration: U1 - Win32 Debug--------------------
Linker-Vorgang läuft...
libcd.lib(wwincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _wWinMain@16
Debug/U1.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
U1.exe - 2 Fehler, 0 Warnung(en)
-----------------------------------------------------
What should I do?
thanks.
P.S. It's my first C++ program, so don't flame
P.P.S. Here are the project properties:
-----------------------------
libcd.lib /nologo /entry:"wWinMainCRTStartup" /subsystem:windows /incremental:yes /pdb:"Debug/U1.pdb" /debug /machine:I386 /nodefaultlib:"libcmtd.lib" /nodefaultlib:"libcmt.lib" /nodefaultlib:"msvcrt.lib" /nodefaultlib:"msvcrtd.lib" /out:"Debug/U1.exe" /pdbtype:sept
-----------------------------
|
|
|
|
|
Ist das ein Konsolen-programm oder was für ne art?
|
|
|
|
|
Win32-Anwendung (Win32-Application)
|
|
|
|
|
Hmmm... it's specifying the wide char version of winmain - is _UNICODE defined in the preprocessor settings?
|
|
|
|
|
It wasn't defined. I defined _UNICODE now, but nothing changed.
Thanks anyway, Tim
|
|
|
|
|
Here is what the german MSDN says:
Wenn Sie Unicode und MFC verwenden, werden Sie in dem Fall, daß Sie keinen Einsprungpunkt für wWinMainCRTStartup erstellen, einen unaufgelösten externen Verweis auf _WinMain@16 erhalten. Verwenden Sie die Option /ENTRY, oder geben Sie diesen Wert in das Dialogfeld Projekt-Einstellungen ein. (In der Entwicklungsumgebung finden Sie diese Option, indem Sie im Menü Projekt auf Einstellungen, dann auf die Registerkarte Linker und anschließend im Feld Kategorie auf Ausgabe klicken.) Beachten Sie dazu auch das Thema Unicode-Programmierung: Übersicht.
perhaps you might try to use the linker-option /ENTRY, although I don't think this is the point
|
|
|
|
|
Well, wWinMainCRTStartup is set as the entry point in your settings. This is usually only necessary (IME) for apps with _UNICODE defined, and is not something I have seen in an app wizard generated project.
Maybe you are modifying a standard sample. One suggestion is that the OpenGL libs (or the one you are linking with) is/are not enabled for unicode, and that's whats causing the problem. Another is that you are using the standard version of VC, which does not (by default(?)) install the debug unicode dlls.
I'd try removing that entry point in the link settings.
|
|
|
|
|
These linker settings:
/entry:"wWinMainCRTStartup" /subsystem:windows
tell the linker that your program will start in a function called "WinMain", NOT "main".
The linker is saying that it can't find a function "WinMain" in your code.
If you have a "main" function in your code then you need to either remove the above linker settings or change your entry function to "WinMain". See the MSDN help for WinMain and /SUBSYSTEM for more details.
Jim
|
|
|
|
|
WTF? This is only the fifth or so time this has been posted in the past week. What's the point of rehashing it again?
--
Paul
"I drank... WHAT?"
|
|
|
|
|
Really? I did not find it in a previous post... (Searching for "printf", "blue", or "BSOD" return nothing about this)
My post was going to detail the underlying cause, but...
-=- James.
|
|
|
|
|
there was a thread on this in the lounge a couple of days ago. it generated the 'old news!' responses there, too.
-c
http://www.smalleranimals.com
|
|
|
|
|
The original post has vanished [prolly deleted]
Nish
|
|
|
|
|
> The original post has vanished [prolly deleted]
Yep. Given the first response, there was no need to further discuss the problem and possible solutions.
-=- James.
|
|
|
|
|
OK
But it might interest you to know that the first time someone posted that code here [it was a guy named Colin] another guy tried it out and rebooted his machine [a guy named nish] and then there was a few threads on that which had about 100 posts.
Nish
|
|
|
|
|
However, there was no point in deleting the original post. In fact, it's damn irritating when someone deletes a post after other people have started responding to it.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Maybe Chris should add a feature so that you cant modify/delete a post once somebody has replied to that post.
Nish
|
|
|
|
|
> However, there was no point in deleting the original post.
That depends on your POV. *I* saw a great need to delete the post, to help prevent similar responses.
> In fact, it's damn irritating when someone deletes a post after other people
> have started responding to it.
It was deleted after the first reply, and I actually expected the thread to go with it (my first 'delete post' attempt).
Because others saw fit to continue the thread is not my doing.
Peace!
-=- James.
|
|
|
|
|
I didn't mean any offense, James. Your original post said that the error occured on a specific line of the C-runtime library, and ended with the statement, "and was discovered by [name deleted]."
That was the end of your post. There was no indication that you wanted to discuss it further or talk about possible solutions. At first blush, it appeared to be a "Me, too!" post instead of a coherant discussion. You didn't even mention the name of the person who discovered where the bug lay. That is more of a tease, than anything else.
If you would like to repost your original message, but provide better direction for the discussion that will ensue, I, and probably others, would be interested in examining this obvious shortcoming of Microsoft's implementation of the Standard C Library!
--
Paul
"I drank... WHAT?"
|
|
|
|
|
> [...] and ended with the statement, "and was discovered by [name deleted]."
> That was the end of your post. There was no indication that you wanted to
> discuss it further or talk about possible solutions.
That is because the post was modified after I got the first reply. It also previously ended with the single word "Thoughts?".
> I, and probably others, would be interested in examining this obvious shortcoming
> of Microsoft's implementation of the Standard C Library!
IIRC, the underlying cause is actually in an underlying Win32 function used by the C-RTL implementation.
The problem was was researched and discovered by someone else whose name was on the original post. I removed it after the first reply, because there was no need for that person to be getting similar emails.
Peace!
-=- James.
|
|
|
|
|
Hi,
I need to manipulate the resource buttons for the file list view setting(list,details,large/small icons) in the standard file open dialog so as to remember the settings.
So, anyone give me the handle to these resources.
Thanks
Paritosh.
|
|
|
|
|
- Why should we use global data ( #pragma data_seg ... ...) in the "MouseProc" function to store information?
- For example, I use MouseProc to get other process's main window title. I implement MouseProc in a Dll. And store the title (in MouseProc) in a global variable (#pragma data_seg ... ...).
- I do not know why should we store other process's main window title in a global variable. Like what I have done.
- Can you help? Can you show me an example?
- Have a nice weekend,
Maer
|
|
|
|
|
- Where should I implement function "MouseProc" in a dll? In a class or as a dll global function?
How to do it?
- Can you help?
- Regards,
Maer
|
|
|
|