Answer Questions
Tareq11192 ATLASSUME(m_bInitialized) Gives Assert in atlcore.h After Porting from VC6.0 to VC8
Hello, I have ported a OPC server application from VC6 to VC8 and after fixing complication and linking I was able to run the same. But while testing the OPCServer Interface i have come across a issue where I get Assert dialog for the ATLASSUME macro. The location details are below. ATLASSUME(m_bInitialized); in atlcore.h inside the function HRESULT Lock() at Line no 182. From the documentation in function HRESULT Locak() I undestand t ...Show All
Bond007 64bit manifest problem / side by side issue
Hi all, I have a 64bit app that refuses to start, it complains about common controls supposedly amiss (in the event log. the error message popping up when starting the app is something completely useless, of course. "...aplication configuration is incorrect...."). It's built from the same source tree than the corresponding 32bit app, which uses some common controls functionality, however, it used to work and now it suddenly doesn't any more. Any ...Show All
zhaoqiang Calling Managed Code from Unmanaged Code ?????
I found this great example on this issue: http://www.codeproject.com/managedcpp/unmanaged_to_managed.asp unfortunatelly , it only works on v.s.net 2003 , and in order to compile it in v.s.net 2005 with the /clr option, you have to make a lot of changes in the code like replacing _gc with ref and alot of other things. I tried to do it, but after all the changes, it still didn't work can someone refer me to an example which is su ...Show All
lenora Project options
I'm looking to build an application using C++ in Visual Studio 2005 and I see that I have several options for project types. I'm looking to build a forms application and my choices seem to be CLR, ATL, MFC, or Win32. It's nice to have choices and all, but what's the difference My main criteria is that I do not want to require users to have the .NET framework. Beyond that I would prefer that the program runs as a single executable without ...Show All
justintime Trying to get metainfo sample application to compile
I am currently trying to get the metainfo sample application that comes with VS 2003. The application code is located at (for a standard VS.Net install): C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\Samples\metainfo Since I am learning VC++ and the ins and outs of the VC++ IDE in VS.Net (tons of settings I haven't a clue about yet) ... I just can't the application to compile. Currently I am gettin ...Show All
euton_l copying a dialog box
I realise this if for 2005 but hopefully you can help, i have visual studio 2003 and i'm using the c++ sharp, i have a dialog box in one old resource file (rc file) that i want to put into another resource file (rc file). How do i copy over just the dialog, i have tried the old copy and paste etc but it doesnt work, and there doesnt seem to be a way to import just a dialog any ideas thanks ok i ...Show All
Alex How to get the size of a double char pointer?
Basically, I want to get the size of a double char pointer, EG char **x; Not the elements of the individual arrays, but the actual number of elements inside the pointer. I don't want to use vectors or Strings either, I know how to do it that way, but it looks ugly. So if I could get some feedback on this, it would be appreciated. :-) You're right. Something like: int xsize = 20; char** x = malloc(xsize ...Show All
sssmith03 How can I get the CheckedListBox for a Com project?
Hi, I'm developing a in process COM server to add prooperty pages to Active Directory. i'm using V.S. 2005's C++ with only the standard library. When I create the GUI resource file for the property page, there is only standard listbox availble in the Toolbox. I know that checkedListBox is availble if I were developing a window application using VC++ from the toolbox. Does anyone know how I can get that added to my toolbox for this project ...Show All
JohnDeHope3 problem of declaring enum as value type in vc++2005 beta1
In VC++ 2005, i can not add 'value' in a enum definition to create it as a value type. Does it mean that all enumeration is defaultly created as value type Any idea ------------------------------------------------------------ value enum WeekDay{ Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }; This does not work and caused 2 errors, C2143 and C2501 ------------------------------------------------------------ value ...Show All
Neil M Thompson On adjacent ">"s in a parameterized declaration
Hello, There is a syntax erron in the following code -- adjacent ">"s need a delimiter (it is marked AAAA) template <class T> class A {}; template <class T> class B {}; int main() { A<B<int>>(); // AAAA } But VC8 can compile it. It seems to be a error but on the other hand Mr. Stroustrup have being dreaming on such a syntax for ages and he promotes it pretty vigorously now, as far as know. So, I a ...Show All
Lars Kjeldsen binaries compiled using VC8 not running on IA64
As VS 2005 is not supported on IA64 platform i had to use cross-compilation on 32bit machine. i did vcvarsall.bat x86_ia64 for setting the build environment. after building the application i tried running it on IA64 machine but it is not running. D:\samples>exercise.exe The system cannot execute the specified program. manifest info is embeded in the application and in its dependency dlls. on checking C:\Windows\WinS ...Show All
josorio disable manifest stuff?
is it possible to diable the manifest stuff so i can run my application on another computer with out .net. So just my exe and a bunch of dll's if they are needed. I've found some threads that discuss copying manifest files and renaming them and shit, but that really sucks, and doesnt even work for me. I cant manage to get a simple printf("hello"); working on another machine! so i've tried a release build using the default project from the projec ...Show All
Dennis Cheng Vertex buffers and textures
I’m looking for a way to create a high-speed Direct3D application. Shall I use IDirect3DVertexBuffer9 except ID3DXMesh object to provide more speed Shall I use vertex and index buffers together Can you give a sample that describe how to use vertex and index buffers to load 3D models with textures from .X files Hi Sergey, There are several DirectX newsgroups on microsoft.public, where you can find qu ...Show All
dizzyjay XML reader for native C++
Hi! I'm looking for a small C++ XML SAX reader, similar to XmlTextReader in .NET. The most important thing is that the library is small can be statically linked. Can anybody recommend me anything Thanks in advance! OK thanks for clearing this up. ;) That's of course true. If Windows 98 has MSXML installed by default, there is really no reason to avoid it. Just one final question: if I use MSXML 2.0 in my program will it also wor ...Show All
_phil How to do Unit Test for Visual C++ unmanaged code with Visual Studio 2005?
I got the following words in MSDN Library, "If your production code is unmanaged, it needs to be callable from a static library, an .obj file, or a DLL entry point. Class methods that are embedded inside an executable file or a DLL will not work because unmanaged Visual C++ does not offer the runtime discovery mechanism, reflection. Therefore, only the traditional native binding mechanisms will work. " Does this mean we still cannot do uni ...Show All
