Software Development Network Logo
  • Windows Forms
  • IE Development
  • Visual Basic
  • Smart Devicet
  • Visual C++
  • .NET Development
  • Microsoft ISV
  • Game Technologies
  • SQL Server
  • SharePoint Products
  • Visual Studio
  • Visual C#
  • Audio and Video
  • Visual FoxPro
  • Windows Vista

Software Development Network >> Visual C++

Visual C++

New Question

Rearding DSN establishment
template compilation problem
Using Mlan DLL
PSDK/calc-sample, please.
Trouble compiling my C program
Passing struct as an argument to a thread pool worker
Drop-In replacement for the stock C/C++ preprocessor
_tmkDir
how to link undefined data types of VC# dll in VC++
Run error on access reading location 0x000000

Top Answerers

Steve Whitley
Heidi Christiansen
ylia
TRTwiggy
Trashey
kastanienreis
jtalbotfdr
Luislcm
bbdobuddy
Rabbitrun
Topix: Linkin Park
Only Title

Answer Questions

  • NehaRahul multiple libraries problem

    i am attemoting to use multiple libraries for my program since i need to use a library created by an outside party which contains functions i need in my proram. the problem is when i add this library to my Additional Dependencies this is the error messages i get (the include/sources/etc paths also already changed to include the new funcations) Linking... LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.li ...Show All

  • luis figueredo passing and returning arguments to functions

    for the life of me i dont know how to make this work in Managed C++. what am i doing wrong ref class Test { public : static void testFunc(String^ buffer) { buffer = "altered" ; } }; int main( array <System::String ^> ^args) { Test^ testClass = gcnew Test(); String^ buf = gcnew String( "some string" ); Console::WriteLine( "before {0}" , buf); //should print "some string" testClass->testFunc(buf); Console::WriteLine( "after {0}" , buf); //should print "altered" return 0; } thank you for that correction! it makes it easi ...Show All

  • Sarosh79 Object code format

    Can anyone tell me what is the format of the object code generated by the old 16 bit compilers such as the VC++ 1.52 I believe the 32 bit versions generate the object files according to the COFF format. Is there any way of generating an OMF file using either the object code generated by the VC++ 1.52 compiler or the EXE generated by the linker Forum visitors tend to be pretty harsh about VC6 questions on this forum. VC1.52 trumps that by, oh, a bonfire and a 6-pack 10 years ago... he he, I totally agree but then I have to work onthis legacy system. Any form of help will be appreciated, thank you. ...Show All

  • LiamD separating high and low 32 bits in a 64 bit interger

    Hi, Can anyone help me to separate the high 32 bits and low 32 bits of a 64 bit integer into 2 new intergers Thanks in Advance inline unsigned long HILONG(__int64 value) { return (unsigned long )(value >> 32); } inline unsigned long LOLONG(__int64 value) { return (unsigned long )(value & 0xffffffff); } That should be as simple as shifting and applying masks. Could you show us some code that you tried Thanks, Ayman Shoukry VC++ Team I am trying to write a C++ program ...Show All

  • s_ruchit menu items

    i have a nice menu set up with pop up menus and all, but how do i make the menu buttons do something i normally use visual c++ but i am away from home so i am using dev = ( anyway here is the source just in case you want #include <windows.h> #include <fstream> #include<iostream> using namespace::std; ofstream outfile; /*  Declare Windows procedure  */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /*  Make the class name into a global variable  */ char szClassName[ ] = "WindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance,                     HINSTANCE hPrevInstance,   ...Show All

  • Zadoras How to wrap C++ DLL class(unmanaged, made on VC98/VC6) into a C++ class on .Net platform?

    I want to know more details about how to wrap a C++ Library class (unmanaged) into a .net (managed) C++ class What compiler will be used to compile the managed C++ class DLL Visual Studio .net 2003 (VC7) is ok   My situation is: I have two 3rd-party C++ DLLs. I want to use some classes and functions from these 2 DLLs to build a .net C# program. First, I used VC++ to instantiate the C++ classes and used VC98 to compile the VC++ file and link the this file with the 2 3rd-party DLLs, and then make a new DLL (VC++). This DLL exports 2 functions. Then I used visual studio .net 2003 to generate a C# project (DLL), create a new class, and within this class I used [DllImport] to import the VC++ DLL I made, and declare the 2 functio ...Show All

  • &amp;#40643;&amp;#27859;&amp;#37327; Jeremy Wong I want to know if there is a function which can read colors value of each points of 3D coordinate, and how can I set color at e

    I am using openGL to dealing with bitmap showing bitmap in 3D view,I want to know if there is a function which can read colors value of each points of 3D coordinate, and how can I set color at each pixel points I appreciate your help. can't you use texturing for getting information about pixel you can use the Pixel Format Functions. inside the article. ...Show All

  • Suman Ghosh bug in short if statement with nullptr?

    Hello! I found a strange thing using the shortend if statement when using a nullptr: This works: OleDbDataReader ^reader = cmd->ExecuteReader(); if (reader->IsDBNull(1)) pObj->DateProperty = nullptr; else pObj->DateProperty = reader->GetDateTime(1); And (just for testing) this works too: OleDbDataReader ^reader = cmd->ExecuteReader(); pObj->DateProperty = reader->IsDBNull(1) reader->GetDateTime(1) : reader->GetDateTime(1); But this is not: OleDbDataReader ^reader = cmd->ExecuteReader(); pObj->DateProperty = reader->IsDBNull(1) nullptr : reader->GetDateTime(2); The last code gives compiler error C2446: ':': Can't convert 'System::DateTime' to 'nullptr' which doesn't make any sense ...Show All

  • legoman26 Files paths withing VS 2005?

    I guess I'm not smart enough to figure out how to get the file path of a file opened inside VS 2005. With VC6 you could get a file's properties and there view the path. I guess Microsoft determined that wasn't usefull so its not in VS 2005. So is it possible to get the path of a file opened in VS or is a yet another thing that makes me wish I could go back to VC6 When you've got a file selected, take a look at the Properties window (likely) in the lower right hand side of your window to see the file properties. If you do not see that Window, from the View menu select Properties Window and try again. Hello Splitting hairs, it was top right for me J ...Show All

  • Kamii47 CSting construction

    hi guys I am using VisualC++ 2005 IDE. in one MFC project, I use the following code but there is a error. please tell why this happens. thx code CString lpszText=" error"; error is error C2440: 'initializing' : cannot convert from 'const char [38]' to 'ATL::CStringT<BaseType,StringTraits>' 1> with 1> [ 1> BaseType=wchar_t, 1> StringTraits=StrTraitMFC_DLL<wchar_t> 1> ] 1> Constructor for class 'ATL::CStringT<BaseType,StringTraits>' is declared 'explicit' 1> with 1> [ 1> BaseType=wchar_t, 1> StringTraits=StrTraitMFC_DLL<wchar_t> 1> ] Hi All, Will my solution work in th ...Show All

  • Mfenetre Access outlook address book

    Hi, I work in medical domain and i need to email to all the patients list that had the treatment dated the nextday thru my VC++ project(i.e i need to extract the email addresses from the outlook client and then mail them. ) the project is written in win32. Any help is appreciated. thanks, KK_VC. Thanks for the information. Are there any ActiveX controls that can help a win32 app to access the Outlook mail contacts Thanks, kk_vc I don’t think it is a good idea to do it in VC++. You have to use COM for that. But if you use some VB instead, you'll be able to accomplish quite a lot. You'll find a lot of help here http://www.outlookcode.com/ You'll find how to send e-mails to a part ...Show All

  • tonofit MFC App. Resizing CEdit boxes

    I have a MDI window. I have A CTreeCtrl box on the top left and a CEdit box to the top right. Along the whole bottom is another CEdit box. When ever you drag the corner of the window to resize nothing expands with it. I've search every where with no solution. So how do i resize everything or just lock the window I've tried to use a splitter but i havent been able to implement it.. Nevermind. Someone replied in the newsgroup. I used OnGetMinMaxInfo to do it. You need to adjust the size yourself.  I'm assuming that you're creating the controls yourself in the parent window's (the MDI window) OnCreate() method.  (If that is not the case, then please clarify.) ...Show All

  • dangrmous Building trouble : error LNK1104: cannot open file

    Hi every body, I'am in serious trouble cause i can't find the solution of my problem. I'am trying to convert an .exe into .dll file after i downloaded the source file of the .exe . I inserted the source code into a "MFC AppWizard(dll)" project and compiled it (was ok) and when generating the .dll file (after i mentioned the "Object/library Module" under the "Project/Settings/Link" Menu ) i got this error : Linking... LINK : fatal error LNK1104: cannot open file "C:\dll3\VisioneerDll\twaintest\Debug\twaintest.lib" Error executing link.exe. Creating browse info file... twaintest.dll - 1 error(s), 0 warning(s) with out mentionong this library ( which is not correct cause the librar ...Show All

  • ssfftt First-chance exception... access violation... debugger winds up in malloc

    Hello all, I keep getting an exception whenever calling 'new'. I'm implementing the singleton function and I have a static * p initialized to NULL. When the 'getInstance' method is called, if the static * p is still initialized to NULL, I call p = new P(); At that point I get a First-chance exception ... access violation message and my debugger tells me the problem is in this function: void * __cdecl _malloc_base (size_t size) { void *res = _nh_malloc_base(size, _newmode); RTCCALLBACK(_RTC_Allocate_hook, (res, size, 0)); return res; } at the line "void *res = _nh_malloc_size...." My program stops running at this point as well. I have error messages that will print just before the new call, but not at the beginning of the constructor ...Show All

  • Todd Biggs - Windows Live Compiler bug?

    // Compiler Bug Example.cpp -- produces incorrect output in Visual Studio 2003 and 2005 for me // clay.s.douglass_at_intel com // #include <iostream> using namespace std; #include <conio.h> class VAddr { public : unsigned structure:5; unsigned offset:29; }; typedef union { struct { unsigned cmd:2; // 0 = write, 1 = read, 2-3 reserved unsigned reqId:5; unsigned lenCode:2; // 1 = 8 bytes, 2 = 16 bytes, 3 = 32 bytes, 0 = reserved; VAddr va; }; unsigned long long ll; } MemCmd; typedef struct { unsigned reqId:5; unsigned long long data; } MemData; int main() { //int i=0; MemCmd writeCmd = {1,2,3, ...Show All

383940414243444546474849505152535455

©2008 Software Development Network

powered by phorum