PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Using Visual Studio 2008

TickledPink · 07 Jan 2009, 17:26 UTC
As the only version of Visual C++ I have for developing Windows Mobile applications is on my copy of VS 2008 Professional, I've been trying to get EDGELIB to work with it. However, when compiling I'm getting the following error:

fatal error LNK1104: cannot open file 'edgerender.lib'

Has anyone successfully created and compiled EDGELIB projects in VS 2008?
TickledPink · 07 Jan 2009, 23:06 UTC
Well, I've got the Hello World example working on it now.

Seems that I had to add the three lib files to the Linker->Input->Additional Dependencies section of the project properties.
TickledPink wrote:Well, I've got the Hello World example working on it now.

Seems that I had to add the three lib files to the Linker->Input->Additional Dependencies section of the project properties.


Hi TickledPink,

Great. Please let us know if you have further questions.
TickledPink · 08 Jan 2009, 13:33 UTC
I am having a few issues with the sample code. Blastar will compile successfully but as soon as it runs, it closes again. I can see a little window or dialog appearing behind the main window for a fraction of a second.

I tried another sample last night but it gave me a dialog telling me that the font could not be found. I suspect that's the problem with Blastar. How can I fix it?

It's been 10+ years since I did any C++ and this is the first time I've done it in Visual Studio.
Hi TickledPink,

The error is probably caused because the sample can't find the images. When building for the PC, the images must be placed in the same folder as the executable (check the other sample workspaces for reference).

When using a Windows Mobile emulator, you need to connect to the emulator and manually copy the images to correct location (the same folder as the executable, just like the PC version). The alternative is to create a .CAB file with the program and images and install it on the emulator.
Hi :)

I have the same issue with the Animated3d sample.

I think it is because I specified LIBC.lib as ignored.

But if I don't do that, I can't compile.

(Multithread is already set).

If someone has an idea, I will take it ;)

Thanks in advance.
Hi Rothiel,

Can you tell me what the exact issue is? Aren't you able to start the sample, or do you have troubles linking?
Hi !

The sample starts, and the window disappears just right after it appears.

I had problems with LIBC.lib, and specify VS2008 to ignore this lib.
Hi Rothiel,

The problem you have is not related to compiling or linking the samples. The issue is that the program can't load the images and quits prematurely (check the OnDisplayInit() functions inside the samples to know why).

First you need to locate the executable when running the sample. The images should be placed in the same path as the executable. For a good example, check the existing pc workspaces.
Hi,

Having struggled this week-end with VS 2008, I thought I'd add my 2 cents.

1) I second that the examples starting and disappearing are usually due to missing resources (image or font) in the Debug/Release directory.

2) Microsoft changed their file organisation as compared to VS2005, so building with edgebuilder doesn't work out of the box (just changing path in .ini files to that of Visual 2008 isn't enough, rc tool has been moved to a new folder, and cvtres has changed parameters)

Below are the lines to be modified/added for WM 2005 :

Code:

vstudiopath = "C:\Program Files\Microsoft Visual Studio 9.0"
sdkpath = "C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK"
winsdkpath = "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin"
...
commandresource = "%toolrccompiler2% /MACHINE:THUMB /NOLOGO /OUT:"%binfile%.res" "%binfile%_tmp.res""


Hope this helps some,

Philippe