Click here to Skip to main content
16,005,682 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: How to integrate with AIM, YM, and MSN messenger Pin
Judah Gabriel Himango18-Jul-05 11:10
sponsorJudah Gabriel Himango18-Jul-05 11:10 
QuestionSplash screen components?? Pin
richiemac18-Jul-05 0:03
richiemac18-Jul-05 0:03 
AnswerRe: Splash screen components?? Pin
Judah Gabriel Himango18-Jul-05 8:52
sponsorJudah Gabriel Himango18-Jul-05 8:52 
GeneralLPTHREAD_START_ROUTINE related Pin
rajandpayal17-Jul-05 16:19
rajandpayal17-Jul-05 16:19 
Questiondoes CSoapSocketClientT keep session? Pin
CherezZaboro17-Jul-05 8:18
CherezZaboro17-Jul-05 8:18 
Generalaccessing from/writing to an outside file Pin
tiptep16-Jul-05 18:08
tiptep16-Jul-05 18:08 
GeneralRe: accessing from/writing to an outside file Pin
Saksida Bojan18-Jul-05 4:39
Saksida Bojan18-Jul-05 4:39 
GeneralSolution: Invalid ResX when using ImageList (resgen.exe error) Pin
darkzangel15-Jul-05 14:42
darkzangel15-Jul-05 14:42 
Only Visual C++ .NET 2003 is affected by this problem so far.

Problem:
I currently have vc++ 6.0, vc++.net 2003 and vc++ 2005 beta2 (i also got beta1). I recently having some wied error with vc++ 2005 giving out error and error about each time I was moving the mouse. I decided to try to reinstall it to fix it (it didn't). An another problem popped up just after I reinstalled my vc++ 2005 with my vc++.net 2003. When I started it an open one of my project, I was having now that error that was keeping popping :

Compiling...
Form1.cpp
Compiling managed resources...
error: Entrée ResX non valide.
error: Specific exception: TargetInvocationException  Message: Entrée ResX non valide. ---> TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> InvalidOperationException: Impossible de charger ImageList.
2 error(s).
Test4 : error PRJ0002 : error result returned from 'resgen.exe'.
My windows xp is in french, it's why a part of the error is in french.

It pretty ennuing when you need to build your project and that your project is using that feature. The problem is actually in cause by some wierd problem when the compiler parse your image data in the resx file. Some syncronisation problem happen. I tried many thing like reinstalling vc++.net 2003->test failed, reinstalling vc++2005->test failed again.

Solution:
Install VC++ 2005 Express Edition Beta 2. Create a similar project. Put in the form a imagelist and bring all your picture in. Save that project somewhere. Open the file Form1.resx (Form1 is name that your given to the form) with notepad. Browse down to the location where the imagelist is. It should look like that :
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
  <data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
    <value>
        AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w
        LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
        ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAA8
        BwAAAk1TRnQBSQFMAgEBDQEAAQ4BAAEEAQABEAEAARABAAT/AQUBAAj/AUIBTQF2BwABdgMAASgDAAFA
        AwABQAMAAQEBAAEEBgABCBgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQADgAMAAf8CAAH/
        AwAC/wEAAf8DAAH/AQAB/wEAAv8CAAP/QwABDwL/AfAcAAEPAf8BDwHwHAABDwH/AQAB8BoAAQgBiAEP
        Af8cAAEIAf8BDwH/AQsBgBoAAQgB9wEPAf8BCwFwGgABCAH/AwABuBoAAQgB9wF3AfgBAAG3GgABCAL/
        AfgBAAELAYAZAAEIA4gBAAELIAABEbkAAQgGiAGAGAABCAb/AYAOAALgAQ8E/wHwAgABCAb/AYAJAAGQ
        AwACDgEAAQ8BAAHwAgAB8AIAAQgB+AKIAY8BiAGPAYAIAAEJAgACIAMAAQ8D/wGPAfACAAEIAu4E/wGA
        CQABkAICBAABDwEAAf8B8AFwAfACAAEIAeABDgOIAY8BgAgAAQkHAAEPAQcBDwIHAQABBAFAAQgE7gHv
        Af8BgBAAAQ8B8ANwAXcBBAFAAQgB+AGIAeABAAHoAY8BgBIAAwcBdwF0AUABCAL/Au4B7wH/AYALAAEL
        AgABCQQAAXACdwF0AUABCAb/AYAMAAGwAQABkAQAAQcCdwEEAUABBAZEAUALAAELAgABCQcAAQQBQAEE
        BkQBQAwAAbABAAGQqwABCwYAAQgBeAGIAQACBRQAAbAJAAFdAQUBUAkAAZABwAEgAgABCwQAAbsEAAEI
        AngBgAEFAtABUAUAAXgBCAFwAQABkAHAASACAAGwBAABCwGwBwACDQFdAwABcAEABAcBAAGQAcABIAIA
        AbADAAEIAQABuwQAAYABiAIAAtUB0AEIAXcCAAEIAXABAAF4AQABkAHAASABAAELBQABuwGwBwABDQJd
        AQABCAEHAQgBiAGABAABkAHAASABAAELBQABCwGwCAAB1QHQAgABiAIAAQgBcAEAAXgBAAGQAcABIAEA
        AbAFAAELAbsIAAENBgAEBwEAAZABAAEgAQABsAYAAbsBsA8AAXgBCAFwAQABkAEAASABC6gAAQYfAAHm
        AWACAASIGAABDgFmAgABhwG3AYcBtwsAAYsDewgAAYgBgAHgAgABiwF7AYsBewEDAwABhwT3AgABhwGw
        AQABtwgAAYAEAAGHAbcBhwG3AQMDAAGPBH8CAAGLA3sIAAGABAABiwF7AYsBewIDAgABhwH3AQABBwH3
        AgABhwGwAQABtwgAAYAEAAGHAbcBhwG3AgMCAAGPBH8CAAGLA3sBCwJ7BQABgAEAARACAASIAgMCAAGH
        AfcBAAEHAfcCAAEIA4gBsAEAAbcCAAEDAgABgAENARECAAEIAb8BuAG/AbABAwIAAY8EfwUAAYsDewIA
        AbMBMAKIAYAB0QEQAgABhwF3AYcBdwEDAgABhwT3BQABhwGwAQABtwEAAQsBuwEzAwABDQMAAQgBvwG4
        Ab8BsAIAAQgEiAUAAYsDewIAAbsBswEwBwAEiAwAAQgDiAIAAQsBux8AAbA9AAFCAU0BPgcAAT4DAAEo
        AwABQAMAAUADAAEBAQABAQYAAQIWAAP/AQAC/wYAAfABDwYAAfABDwYAAfABDwYAAfABDwYAAYABDwYA
        AYABDwYAAYABDwYAAYABBwYAAYABhwYAAYABwwYAAYABwwYAAf8B4QYAAf8B4wYAAv8GAAL/BgAQ/wGA
        AQED/wHxAQABDwGAAQEB+QHPAd8B4AEAAQ8BgAEBAfMB5wGMAUEBAAEPAYABAQHzAecBCAEjAQABDwGA
        AQEB8wHnAQABdwEAAQ8BgAEBAfMB5wEYAa8BAAEJAYABAQHnAfMBrwHfAQABAQGAAQEB8wHnAfYBqwEA
        AQEBgAEBAfMB5wH4AXEB+AEBAYABAQHzAecB/AEhAfwBAQGAAQEB8wHnAfwBIQH+AQkBgAEBAfkBzwH+
        ASMH/wF3Ff8B9wT/AfMC/wHjBP8B8QH/AeABwQL/AYAB8QH4Av8BgAL/AYAB8QH4AX8BgQEAAf8BwQGA
        AeMB/AE/Af8BAAHHAYgBgAHjAfgBHwHTAQABgAEcAYABxwH4AR8B/wEBAaABPgGAAccB/AE/Af8BgwHP
        AZwBgAGPAfwBHwH/AccB/wGIAYABjwH+AQ8B/wHvAf8BwQGIAR8B/gEPBP8BiAEfGf8B7wf/AccH/wGD
        AcABHwL/AYAC/wHBAcABDwHgAQ8BAAF/Af8BAwHAAQcBwAEHAQABfwH/AXcBwAEDAcABBwEAAX8B/wF/
        AcABAQHAAQcBAAEDAf8BdwHAAQEBwAEHAQABAQHvAWMBwAEBAcABBwGAAQEBxwFBAeABAQHAAQcB/AEB
        AYABAAHwAQEBwAEHAfwCAQHxAfgBAQHgAQ8B/AEBAYAB+wH8AQEC/wH+AQMBwQf/AeMH/wH3B/8L
</value>
  </data>

Copy it and go in your project in which one you have problem with the imagelist and replace the current code. Go build your project and it should work.
This is only a temp solution and you should try to completly reinstall your operating system and your vc++.net 2003.

I hope that it will be usefull to someone.
GeneralVisual C++ Different Icons for Release and Debug Pin
14-Jul-05 22:17
suss14-Jul-05 22:17 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
Neelesh K J Jain16-Jul-05 8:59
Neelesh K J Jain16-Jul-05 8:59 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
20-Jul-05 17:20
suss20-Jul-05 17:20 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
Neelesh K J Jain20-Jul-05 19:31
Neelesh K J Jain20-Jul-05 19:31 
Generalgcroot constructor crash Pin
Xen3h14-Jul-05 9:51
Xen3h14-Jul-05 9:51 
General.net dialog boxes Pin
istrasci14-Jul-05 7:45
istrasci14-Jul-05 7:45 
GeneralRe: .net dialog boxes Pin
Christian Graus14-Jul-05 11:15
protectorChristian Graus14-Jul-05 11:15 
QuestionHow to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger13-Jul-05 7:41
Florian Albrechtskirchinger13-Jul-05 7:41 
AnswerRe: How to prevent a delegate from relocating on the CLR heap Pin
Sheng Jiang 蒋晟15-Jul-05 18:17
Sheng Jiang 蒋晟15-Jul-05 18:17 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 5:14
Florian Albrechtskirchinger16-Jul-05 5:14 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Sheng Jiang 蒋晟16-Jul-05 5:54
Sheng Jiang 蒋晟16-Jul-05 5:54 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 8:01
Florian Albrechtskirchinger16-Jul-05 8:01 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 22:51
Florian Albrechtskirchinger16-Jul-05 22:51 
GeneralMultible Instances. Pin
Saksida Bojan13-Jul-05 4:11
Saksida Bojan13-Jul-05 4:11 
GeneralRe: Multible Instances. Pin
toxcct13-Jul-05 5:57
toxcct13-Jul-05 5:57 
GeneralRe: Multible Instances. Pin
Tom Archer13-Jul-05 10:14
Tom Archer13-Jul-05 10:14 
GeneralDetect if .NET Framework is installed Pin
Saksida Bojan13-Jul-05 4:09
Saksida Bojan13-Jul-05 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.