Skip to main content

Problem using IeEmbed.exe

12 replies [Last post]
beagle2
Offline
Joined: 2006-02-19
Points: 0

Hello,

I've managed to compile IeEmbed.exe, but when I replace the IeEmbed.exe that is distributed with JDIC with my own compiled version then the browser stops getting displayed, instead I get a new window appearing in my taskbar (which I believe is IeEmbed.exe) - it has no title or icon, when I click on it nothing happens. When i kill the IeEmbed process in task manager then the program dissapears from the taskbar.

I don't get any errors during the compile, so I have no idea what the problem is. Is there an option in VC++ I have to set?

Anyone have any ideas?

Thanks in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
madroadie
Offline
Joined: 2006-04-19
Points: 0

I had to build it using MSDev 6.0. I had the same issue when I used Visual Studio 2003. You also need to download the newest Platform SDK Server 2003 R2, and change the directory paths using options-->Directory tab.

beagle2
Offline
Joined: 2006-02-19
Points: 0

Yes I'm also using Visual Studio 2003.

Excuse my ignorance, my c++ knowledge is limitted, but does MSDev = Microsoft Developer's Studio? If so, where do I get it from?

I have MS Visual C++ 6.0 - would that work?

Many thanks

madroadie
Offline
Joined: 2006-04-19
Points: 0

Yes, sorry for the name mix up. I mean Microsoft Visual C++ 6.0

You might have trouble installing the older version of the compiler on top of the newer version, so when it asks you to register the environment variables say no, and then create a batch job to load the compiler.

Here is mine, Msdev60.bat
set MSDevDir=c:\MSDEV60\COMMON\msdev98
set MSVCDir=c:\MSDEV60\VC98
call %MSVCDir%\bin\vcvars32.bat
start c:\MSDEV60\COMMON\msdev98\BIN\msdev.exe

Next make sure the newest Platform SDK paths are correct, in the MSDev-->Tools-->Options, Directory Tab, Include files combo. The following should be on top, or listed first.
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include

Now the library paths
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib

beagle2
Offline
Joined: 2006-02-19
Points: 0

Thanks for your help madroadie - much appreciated

I'm downloading SDK 2003 R2 (all 400Mb of it!), and will follow your instructions

madroadie
Offline
Joined: 2006-04-19
Points: 0

No worries, this board has saved my rear before, so I don't mind returning the favor.

If you download the ISO version, you will have to burn it to CD or use the "Virtual CD-ROM Control"

BTW, I have tested it with XP Service pack one and I haven't seen any issues. The R2 release is needed for the NewWindow3 COM events.

beagle2
Offline
Joined: 2006-02-19
Points: 0

Brilliant, it worked! Thanks so much for your help, couldn't have done it without you.

javanian1
Offline
Joined: 2008-01-21
Points: 0

Hi There,

I'm trying to fix the same problems in JDIC 2061102 and I'm building using Visual Studio 2005. For various reasons we ant to stick with this version of JDIC.

I put the headers and libs in the order you suggested in the thread above, but I still get the browser control detached from the host ATL window, and it does not even try to navigate.

Are there any other steps you found you needed?

Thanks,

Jez.

madroadie
Offline
Joined: 2006-04-19
Points: 0

You can't use Visual Studio 2005, You must use Visual C++ 6.0. I know it sucks. It will compile and link and stuff but when you go to run it you get an extra item on the (Windows Task/Start bar) and the browser is gray. I've tried everything. The only way around it is to use a DLL instead of an exe, or find the code that hides the application from the task bar. I'm not sure why they put in a exe in the first place. It was most likely they didn't want crashes in IE to kill the JVM.

What changes to the C++ are you trying to make?

kingtimm
Offline
Joined: 2008-06-20
Points: 0

I do not have access to Visual C++ to compile this myself. I tried compiling as a DLL, but without luck. This is probably against forum rules, but would someone be kind enough to send me the compiled ieembed.exe? I am using it for a project that is due pretty soon and this is the last bug i need to work out.

Please help me out if you can. e-mail to kingtimm [At] gmail.com

-Tim

taylans
Offline
Joined: 2008-08-18
Points: 0

If you do not need any modification you can download it, i do not understand why do you need the exe from someone?

michael_shan
Offline
Joined: 2005-05-29
Points: 0

Hi,
Have you made some changes to the IeEmbeded? Or just have rebuilded it?

beagle2
Offline
Joined: 2006-02-19
Points: 0

Hi Michael,

I didn't make any changes to the code, literally opened the win32 IeEmbed.dsw and built the solution as a Release exe. I got this output from the compiler:

------ Build started: Project: IeEmbed, Configuration: Release Win32 ------

Compiling...
StdAfx.cpp
WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)
More than one global threading model defined.
Compiling...
VariantWrapper.cpp
IeEmbed.cpp
BrowserWindow.cpp
Generating Code...
Linking...

Build log was saved at "file://c:\Documents and Settings\XYZ\Desktop\jdic-0.9.1-src\jdic-0.9.1-src\jdic\src\win32\native\ie\Release\BuildLog.htm"
IeEmbed - 0 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped

Can you think of anything I need to change in the VC++ setup before compile?

Also, thank you for your hard work on this project, I certainly really appreciate it!