Answer Questions
RichardVo error when using a mixed mode dll in a windows service
under the dot net 2.0 framework I get the following error when i use a mixed mode dll with in a vb.net windows service. System.BadImageFormatException: Invalid access to memory location. (Exception from HRESULT: 0x800703E6). This dll works fine if used in a vb.net standalone application. Any ideas what may be the cause Hi, I had similar sittuation, the trick was to add the nonmanaged dll to the system PATH. ...Show All
Dave_Thompson error C3861: 'exit': identifier not found
Hi, I'm trying to build an old code (main.cpp) where I'm using SDL. This is my first time using Visual Studio 2005 . I have included the following: #include <SDL/SDL.h> #include <stdio.h> #include <stdlib.h> int main( int argc, char *argv[]) { if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ) //SDL_Init will return -1 if it could not initialize { printf( "Unable to in ...Show All
shjuspea How to use the HeapWalk() function
I use the HeapWalk() function to check the Committed and UnCommited Memory of a heap. But when the lpEntry.wFlags equals to 0, I don't konw the "0" is which status of the block. and how to know the true size of this block. AFAIK no. The complete size if cbData+CbOverhead! In the Internet, I find a sample of HeapWalk, the user compute the block size like that another method. if the cbData is ...Show All
bialguos why would operator=() and operator*() conflict in ref class??
I have some code that boils down to this: ref struct A { A % operator =( const A % other) { return * this ; //<<-- offending line - thinks I mean make "this" an int as defined below: } int operator *() { return _i; } int _i; }; int main( array <System::String ^> ^args) { A a, b; a = b; return 0; } So when I compile this example in ...Show All
shaper unable to edit command line for a project
Trying to compile and execute a C++ project in VS2005 I ran into a linker problem. After some investigation it turned out that the calling convention was not what it was supposed to be for the functions used in the program. I changed the option for the calling convention from /Gd to /Gz. I needed __stdcall to be made. After that I got this error message: Error 1 Command line error D8016 : '/clr:pure' and '/Gz' command-line options are ...Show All
Deepak_SQL Winform .Net framework
I am working on winform application in VC++ .Net 2003 I have both .Net 1.1 and .Net 2.0 framework installed on my machine. Can I check whether my application is using .Net 2.0 or .Net 1.1 that knowledge will help me during deployment Also I would like to use .Net 2.0, is there a way to choose between the two TIA If the application is written in VC++ .NET 2003 then it will use .NET 1.1. However if the machine that runs the application on ...Show All
Dianne Watson _TLOSS in _matherr
I am porting a mathematics application from Borland C++ to Visual C++ 2005 Express Edition beta, but it seems that _matherr does not work as described in msdn. After some research and tries I have succedded in getting _matherr called with the _DOMAIN error (for instance when evaluating log(-1)); but it seems that _PLOSS and _TLOSS are not used and the supporting routines do not complain if things like sin(1e300) are evaluated. Any ideas to make ...Show All
Frank Y. How to use dialogs created within resource.rc??
Requirements: No .NET Questions: I need to fill out the the following method definition: BOOL WINAPI ScreenSaverConfigureDialog(hDlg, message, wParam, lParam) So I can do this, but I need to know how I can interact with dialog windows. I have created a dialog in the .rc file, but I have no idea on how to access it within this file. I need to be able to 1) Create a dialog message when I enter the settings menu 2) Grab input from it Can someone h ...Show All
Brian Cecile Internet App
Hi I would like to create an application using Visual C++ to connect to the internet, then a web page, and then search the page and extract information. Trouble is I am fairly new to this and dont really know how to start, so hoping someone can point me in the right direction. Cheers Jon I am actually using .Net. Sorry for the mistake. Where would be best to post Cheers Jon ...Show All
osalzgeber Linking error while using VS.NET2003
Hi I am using VS.NET 2003 to build a project. I get this linking error when I try to build a project . vc6-re300dm.lib(wide_posix_api.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" ( _Xlen@std@@YAXXZ ) referenced in function "private: bool __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::_Gr ...Show All
Joe Quint using ATL macro to change LPSTR to LPCWSTR
Hello, I'm making a 3D game and realized I would have to face many problems and maybe trying to "reinvent the wheel" on my own, if I wanted to implement SETTINGS -(for graphics mode) in my game. So I am going for DXUT framework or engine by Dx team or what it is called to simplify my life. But I am facing some problems, because it is using UNICODE and I need to change LPSTR to LPCWSTR so I use macro A2W(lpstr) and inc ...Show All
Carol Beth MFC and ODBC connectivity
Hi, For my project i need some sample codings for connecting Access database using VC++. I used a dialog based project and i dont know how to access the recordset. Pls help me friends. ur suggestions are valuable...... http://msdn.microsoft.com/library/en-us/vcsample/html/_sample_mfc_enroll.asp The MSDN is full of samples. maan!, I think you are using something from the cave age, why not using ADO (ActiveX Data Objects) ...Show All
raider123 How to Read the Log of Sql Server
Hi, In the "Query Analyzer" , Type "DBCC log...." Will Display the log of a Database. But In VC++ ,How to retrieve the result of Log file of Database in Sql Server Hi Robert, I'm not sure if the dbcc functionality is available through an API that you can call from VC++. You might ask this question on one of the SQL Server forums at http://forums.microsoft. ...Show All
Lakshan Where did the win32 winsock libs and headers go?
I am trying to compile some software I wrote using the win32 winsock interface and its just not there. What happened to it BTW, this is for Visual C++ Express Beta 2 VC6 is no longer supported. So you don't need to wonder that the official SDK only supports the newer versions of the VS series. Also the higher MSDN abos contain the MSDN library that is a the complete online d ...Show All
SamProsser error LNK2001: unresolved external symbol _main
I've created an VC++ 2k5 DLL with CLR (but not with MFC or ATL) from existing source. I can get this to compile and link until it produces an LNK2001: unresolved external symbol _main error. I've looked this error up in the help and tried most all of the suggestions in the help & or the KB Q291952 article to do with thise error and none make the error go away. That is... 1) I checked it was an DLL Project not a console project 2) ...Show All
