YES! Thank you very much! I had commented that one out, since Studio 2005 at the time said it was no longer necessary! Including it again did the trick! Thank you very much!
William Engberts
Posts
-
DialogBox fail in XP -
DialogBox fail in XPJust tried that: No change :( Thanks anyway
-
DialogBox fail in XPThanks for your answer, but I cannot find much out of the ordinary. I am not very well familiar with the manifest, but it looks to be generated by Studio2010? Anyway, it reads: There is no RT_MANIFEST mentioned in the resource Also, the MinimumRequiredVersion is left blank, so I don't expect any difficulties there! In any case: the program itself runs and it does everything up untill the point that I start the dialog box. (and everything after that dialogbox crashes) There are a number of log statements before and after and I see everyone of them. Only everything that occurs from within the dialogbox doe not appear in XP.
-
DialogBox fail in XPHi everybody, I have a console application, that create a dialog box to show a progress bar. This has worked fine for years (it started as a Visual Studio 6 project, then I migrated it to Studio 2005) Now, I have migrated it to Studio 2010. It still works fine under Windows 7, but under XP, the dialog box returns -1, with a GetLastError() of 0. When I look at the messages sent to the dialog box, then I see WM_SETFONT, followed by WM_DESTROY and WM_NCDESTROY. I call it as DialogBox (hInstance, MAKEINTRESOURCE (IDD_MAPPER), HWND_DESKTOP, DialogProc), where DialogProc is defined as INT_PTR CALLBACK DialogProc(HWND, UINT, WPARAM, LPARAM); Like I said: it all worked fine and still does in Windows 7, but XP does not seem to co-operate anymore. Anybody any ideas? Would be grately appreciated! Thanks in advance, William
-
CEdit extendedHi guys, For our company I have written (meanwhile some 15 years ago!) a data mapping tool. This tool has evolved over the years and it is currently in C++, using Microsoft Visual Studio 2010. One of the products for this tool is a debugger that shows what is happening and shows the source code lines where action is performed. This part uses a CEdit control. We have included stuff like breakpoint markers and all that. Recently I have come to think that it might be handy to introduce syntax highlighting for the source codes. Would anyone have any samples of a CEdit that can do that sort of thing (like changing the color of words, showing them in bold or italics and stuff like that) Would save me a lot of re-inventing the wheel! Thanks in advance for any suggestions.
-
How to grant access rightsWhich is indeed what I advised my clients. However, there are several clients using this software and if there is one thing I learned over the years: Sysadmins will ALWAYS have their own thoughts on how to organise and authorize their users! William
-
How to grant access rightsHi all, I have a program that runs as a service somewhere on a server. It communicates with a console-type program (possibly on another machine within the network) by means of a messages file. The file is created by the service (because there may be multiple console programs running) However, the service is started by an administrator. Due to this, the console programs do not have access rights to the messages file. It works fine if I create the file manually (the service only creates if it does not exist) but if the file for some reason gets deleted, the consoles are no longer able to add their messages into the file. Is there a way in which I can grant full control rights to all users from the service program after creating the file? Anyone? Please? Thanks in advance, William
-
Memory alignment changed from studio 2005 to 2010?Could do that, but: 1. They are still used in other programs too 2. Some of these programs have also already been built in Studio 2010 and they all work..... William
-
Memory alignment changed from studio 2005 to 2010?The program is a Dialog based program that calls the datamapper's main loop (replaced the original "main" in the production datamapper by a routine called "StartMapping" in case of the debugger) from the "OnInitDialog". The dialog is c++, the datamapper is C and it does call some Studio6 built libraries that hold stuff like a standard error handling, license check etc. That has all been passed when at some point in the mapping, I use a malloc (or - after having removed the malloc for a test - a _fullpath with a NULL pointer for the target) Point is that it all worked fine when compiled in Studio2005, and it no longer works now that I have it compiled by Studio2010. It crashes when calling HeapAlloc in ntdll.dll, which tends me to believe that something changed in memory alignment. William
-
Memory alignment changed from studio 2005 to 2010?Hi all, Years ago I wrote a datamapper in 16 bit C which is still in use. Later I added a debugger that is based on the same code with a user interface in front. When we changed to windows interfaces, I rewrote the interface in c++ (Visual Studio 6) still mixing it with the original C mapping code. Then I migrated to Studio 2005. Works fine. I however recently moved to studio 2010. Now, the system crashes on every "malloc" statement in my C code. It throws an exception at the HEAP_ALLOC (Can't really follow anymore, the last part is in assembly for which there is no source studio says). Anyone any idea if there has been a change in memory alignment? Is there a compiler option that I should use?? Please help you wise men and women out there!!!! Thanks in advance William
-
Unresolved external SymbolThis is the exact message: "error LNK2001: unresolved external symbol _VERSION"
-
Unresolved external SymbolWell you do have a point there. The linker complains about a straight _VERSION. As far as I know, it would complain about something including the name mangling normally. It does however mean that - if I introduce a variable named _VERSION - that will probably be called differently internally. I have been looking into a way to remove the name mangling from a particular variable, but have not yet found anything.
-
Unresolved external SymbolYes, I tried that too (adding char *_VERSION = "x.x"; as a global variable) but it does not help a bit
-
Unresolved external SymbolI fully agree with you all. Point however is that I need to find-out where my code is using it anbd even more: when I simply introduce a global variable _VERSION, I would no longer expect an "unresolved external" for _VERSION.
-
Unresolved external SymbolWell, the point is that the software calls some other C modules. I did scan all sources for as far as I can see, but they are not all included in the VS2010 solution so I had to so that by hand. However, I would have expected to at least get rid of the linker's complaint by adding a variable _VERSION in my own source code. Possibly with a wrong type, but then I would expect another complaint from Microsoft somewhere....
-
Unresolved external SymbolTrying to convert a very old C program to Microsoft Visual Studio 2010. After some warnings, including some extern "C"'s and all that, everyting compiles. However, the linker keeps calling that is misses an external symbol "_VERSION". I have been looking through all code and can't find any reference to it. I included a char * _VERSION somewhere in my main source (within and outside the extern "C") Still complains. Does anyone have an idea how I could find out where the linker finds the call of this reference? Is there som option that can persuade the linker to provide me with much more information or something like that? This is getting extremely frustrating, since everything else seems to work as expected. Just this @!$@! _VERSION.... Thanks in advance.
-
How to execute an external program based on file extensionAlthough there are definately certain files that I would gladly *kill*, *exterminate*, etc You are right in assuming that my question was intended to be boringly technical.
-
How to execute an external program based on file extensionThanks a lot. This indeed solved my issue. Regards, William
-
How to execute an external program based on file extensionHi all, I have an MFC program that (amongst others) stores some files with different types (like .msg, .doc, .eml etc) When the user selects one such files, I would like to start the relevant software to open that file much like what happens when I doubleclick on a file from the explorer. How do I do such a thing? (one: how do I find-out which program to start based on the file's extension and two: what is the easiest way to start that program?) Thanks in advance William
-
Dropping emails onto C++ MFC applicationHi all, I am writing a little program in which I also work with emails. In order to do so, I want to be able to drop emails onto my dialog. I added all the necessary stuff (like ON_WM_DROFILES() and all that). This all works fine when I drag a file from an explorer window onto my dialog. However, when I try to drag an Outlook email message, this cannot be dropped on my dialog (The cursor remains being the "unable to drop here" icon). When I drag it onto the same explorer window, it does allow dropping there and then causes an .msg type of file. I would like that file (or information from which I can create such a file) to be dropped onto my dialog directly. Any ideas on how to allow dropping of email messages? Thanks in advance, William.