visual-studio-languages-forums,windows-desktop-development-forums,visual-cRelated issues-Collection of common programming errors


  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Can someone enlighten me as to why FindFirstFile() might fail from time to time?I have a web server that keeps doing a FindFirstFile() to locate images, often it might have multiple threads searching the same folder at one time.  Also, from time to time, there is another process which will be add, delete, or update images intothe directory.  Mostly it adds images.Normally everything works fine.  I had a customer that had the whole system running for about 8 hours today and only ON

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    I have 2 projects,1 native c that loads native c plugins with LoadLibrary()1 C# that loads Managed library with Assembly.LoadFile()And i have created a plugin using Mixed Mode C.1 part native plugin for the native project, and one managed for the c# project.The two parts dont interact, but i want them in the same dll.This works fine, but one thing is bugging me…When i load the plugin in c#, it only works if the dependencies for the native part is present.I would like to be able to ignore the n

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Will keep this very simple for now as I just want any ideas as to what could possibly cause the following behaviour: At a certain point in program execution, within a message handler for my window (in fact at this point execution is within a nested series of SendMessage() calls/window procedure handlers, perhaps around 10-15 deep, I don’t know if this could possibly be a cause) calling SendMessage() for a window in the same thread is returning 0, GetLastError() returns 0, yet the message is not

  • msdn
    visual-studio-languages-forums net-framework-forums visual-c-
    Using the bootrapper manifest generator, I have created a custom bootstrapper package that I added as a prerequisite to my visual studio installer.  My goal is to add the SQL Server Native Client 10.0 (sqlncli.msi) to the installer if it’s not alreadyinstalled on end user machine.  Everything compiles fine, but when I run the install it fails while trying to install the Native Client.  The install.log file says:WinVerifyTrust returned 0File trustedInstalling using command ‘C:\WINX

  • msdn

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hello,  how do I create native Win32 app in C that creates two windows with separate WindowProcedures and message handlers. Second window should not be a child.So far I tried://This is 0K.wc.lpfnWndProc = DERIVED_TYPE::WindowProc;wc.hInstance = GetModuleHandle(NULL);wc.lpszClassName = ClassName();RegisterClass(&wc);m_hwnd = CreateWindowEx( 0, ClassName(), lpWindowName, WS_OVERLAPPEDWINDOW, x, y, nWidth, nHeight, hWndParent, hMenu, GetModuleHandle(NULL), this );//Here Is a part in

  • msdn
    visual-studio-languages-forums net-framework-forums visual-c-
    I have been researching for days and figured out you just can’t get image processing to work as fast in C#. All the commercial image processing, drawing and recognition components wrap a native library and provide a managed interface. What should I do, get cracking with C/C++ and get to a point where I am satisfied and wrap it in a C++/CLI wrapper? I just love C# too much and can’t betray it, there must be a way, especially with the advent of WPF.I need help!

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
    I need a document that contains the native C++ language specification. I am not talking about the .Net version – C++/CLI. I want the specification for the good old native C++ used for writing Win32 applications.I am currently writing an FPS game using Native C++ (VS2005) and DirectX 9. Most of the time, I either get stuck or do something manually, when there already exists an operator, function etc… to do it in C++. The problem is, I don’t know enough about the language.Can someone tell me whe

  • msdn

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hi, I’m new to developing in visual studio. So far I developed in BCB, concerning c++. Now I want to create an application with visual studio 2005, with _native_ c++. And I’m somewhat reluctant to believe that there’s no gui-designer for unmanaged c++ code! Can it be true, or am I just stupid enough to not find it? I mean… gui designers exist in other products for ages now, why would it be a new feature only introducted with .net??To clarify: I’m asking, whether there _is_ some designer, not r

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Can someone enlighten me as to why FindFirstFile() might fail from time to time?I have a web server that keeps doing a FindFirstFile() to locate images, often it might have multiple threads searching the same folder at one time.  Also, from time to time, there is another process which will be add, delete, or update images intothe directory.  Mostly it adds images.Normally everything works fine.  I had a customer that had the whole system running for about 8 hours today and only ON

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    I have 2 projects,1 native c that loads native c plugins with LoadLibrary()1 C# that loads Managed library with Assembly.LoadFile()And i have created a plugin using Mixed Mode C.1 part native plugin for the native project, and one managed for the c# project.The two parts dont interact, but i want them in the same dll.This works fine, but one thing is bugging me…When i load the plugin in c#, it only works if the dependencies for the native part is present.I would like to be able to ignore the n

  • msdn
    windows-desktop-development-forums windows-hardware-development-forums windows-hardware-wdk-and-driver-development
    HiThe HClient sample in WDK fails in Windows 8. It works fine in Win 7. On debugging it is seen that on Win 8, CreateFile() for  HID devices fail with error 32 whenever  a “FILE_SHARE_READ” access is requested. It looks like some other applicationin Win 8 has an exclusive READ access lock on the HID device(touch monitor in our case). Even CreateFile2() returns the same error.My setup is a freshly installed Win 8 system. Touch monitor is plugged in and HClient is run. Any

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Will keep this very simple for now as I just want any ideas as to what could possibly cause the following behaviour: At a certain point in program execution, within a message handler for my window (in fact at this point execution is within a nested series of SendMessage() calls/window procedure handlers, perhaps around 10-15 deep, I don’t know if this could possibly be a cause) calling SendMessage() for a window in the same thread is returning 0, GetLastError() returns 0, yet the message is not

  • msdn

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hello,  how do I create native Win32 app in C that creates two windows with separate WindowProcedures and message handlers. Second window should not be a child.So far I tried://This is 0K.wc.lpfnWndProc = DERIVED_TYPE::WindowProc;wc.hInstance = GetModuleHandle(NULL);wc.lpszClassName = ClassName();RegisterClass(&wc);m_hwnd = CreateWindowEx( 0, ClassName(), lpWindowName, WS_OVERLAPPEDWINDOW, x, y, nWidth, nHeight, hWndParent, hMenu, GetModuleHandle(NULL), this );//Here Is a part in

  • msdn
    windows-desktop-development-forums directshow-development
    Hi, My custom decoder filter’s output format is I420 which is not supported by VMR7 directly. So I am converting it YUY2 format which was not relatively hard work. Since then the output pin from decoder is directly connected to input pin of VMR which I verified using IPin->ConnectedTo() method. But there seems to be some CPU overload problem when I am decoding 640×480 video stream into VMR7. I just want to check 1) whether RGB24 should be used to connect VMR7 instead of YUY2 format (I

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
    I need a document that contains the native C++ language specification. I am not talking about the .Net version – C++/CLI. I want the specification for the good old native C++ used for writing Win32 applications.I am currently writing an FPS game using Native C++ (VS2005) and DirectX 9. Most of the time, I either get stuck or do something manually, when there already exists an operator, function etc… to do it in C++. The problem is, I don’t know enough about the language.Can someone tell me whe

  • msdn

  • msdn
    windows-desktop-development-forums application-compatibility-for-windows-desktop-development
     Hi to all respected membersi have downloaded the  Native Application From here http://technet.microsoft.com/en-us/sysinternals/bb897447.aspxi want to use it on “Vista” How do i go about it . I have DDK 6000 .i compiled the application for Windows Vista .but it simply does not work !Any thing that needs to corrected ! i found very less documentation about this topic!regards

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Can someone enlighten me as to why FindFirstFile() might fail from time to time?I have a web server that keeps doing a FindFirstFile() to locate images, often it might have multiple threads searching the same folder at one time.  Also, from time to time, there is another process which will be add, delete, or update images intothe directory.  Mostly it adds images.Normally everything works fine.  I had a customer that had the whole system running for about 8 hours today and only ON

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    I have 2 projects,1 native c that loads native c plugins with LoadLibrary()1 C# that loads Managed library with Assembly.LoadFile()And i have created a plugin using Mixed Mode C.1 part native plugin for the native project, and one managed for the c# project.The two parts dont interact, but i want them in the same dll.This works fine, but one thing is bugging me…When i load the plugin in c#, it only works if the dependencies for the native part is present.I would like to be able to ignore the n

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Will keep this very simple for now as I just want any ideas as to what could possibly cause the following behaviour: At a certain point in program execution, within a message handler for my window (in fact at this point execution is within a nested series of SendMessage() calls/window procedure handlers, perhaps around 10-15 deep, I don’t know if this could possibly be a cause) calling SendMessage() for a window in the same thread is returning 0, GetLastError() returns 0, yet the message is not

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hello,  how do I create native Win32 app in C that creates two windows with separate WindowProcedures and message handlers. Second window should not be a child.So far I tried://This is 0K.wc.lpfnWndProc = DERIVED_TYPE::WindowProc;wc.hInstance = GetModuleHandle(NULL);wc.lpszClassName = ClassName();RegisterClass(&wc);m_hwnd = CreateWindowEx( 0, ClassName(), lpWindowName, WS_OVERLAPPEDWINDOW, x, y, nWidth, nHeight, hWndParent, hMenu, GetModuleHandle(NULL), this );//Here Is a part in

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hi, I’m new to developing in visual studio. So far I developed in BCB, concerning c++. Now I want to create an application with visual studio 2005, with _native_ c++. And I’m somewhat reluctant to believe that there’s no gui-designer for unmanaged c++ code! Can it be true, or am I just stupid enough to not find it? I mean… gui designers exist in other products for ages now, why would it be a new feature only introducted with .net??To clarify: I’m asking, whether there _is_ some designer, not r

  • msdn

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Dear Sir,I have created DLL using with Common Language Runtime(clr) in VC++ .net 2003. I have following problem when i creating DLLI have using the following code in my DLL projectusing namespace System;using namespace System::ComponentModel;using namespace System::Collections;using namespace System::Windows::Forms;using namespace System:rawing;using namespace System::IO;The following errors are comed:\Projects\In-Progess\biocap\FingerPrint\FpSdkDll\FpSdkDll\FpSdkDll.cpp(75): error C2653: ‘Syste

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hello,I want to use native C++ function in my managed C++/CLI application. The native function return smart pointers:SmartPtr<Foo> constructFoo() { SmartPtr<Foo> p(new Foo); return p; }SmartPtr<Bar> constructBar() { SmartPtr<Bar> p(new Bar); return p; }Now I want to use these functions and store the smart pointer in my managed C++/CLI class.class ref Managed { SmartPtr<Foo> t; // Unfortunately this doesnt workvoid method() { t = constructObject(); } };  What would b

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    hii used StretchBlt in native C for drawing an image, but it’s not with the same quality as when i use DrawImage in C# for it. this one gives a very better quality. i want a class like Image in native C (not using CLR or dot net). is there such a classor is there any way to use GDI for drawing an stretched image?thx

  • msdn
    visual-studio-languages-forums windows-desktop-development-forums visual-c
    Hi,http://msdn.microsoft.com/en-us/library/ee2k0a7d%28v=VS.90%29.aspxI have read the above link.[event_source(native)]is this event_source necessary? What event_source & event_receiver doing?I have tried that event handling without event_source & event_receiver.I can able to raise event. I got result also.

Web site is in building