Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

Using .NET in native C++ DLL of PTC Pro/TOOLKIT

Hello!I have to write a synchrone application for PTC Pro/ENGINEER Wildfire 4.0 using Visual Studio 2005. Pro/TOOLKIT is an API in native C/C++. The DLL is loaded as plugin into Pro/ENGINEER.It is not...

View Article


Why does ImageList_DrawEx produce no output when printing?

I am using the following call to draw an icon:ImageList_DrawEx(hImageList, 1, hDC, ptX, ptY, 0, 0, CLR_NONE, CLR_NONE, ILD_IMAGE);This works fine on-screen and in print preview but produces no output...

View Article


CreateProcess documentation

Is it me, or is the CreateProcess documentation simply incorrect for when specifying the program name as part of the second argument, with the first argument NULL? From the documentation:"If the file...

View Article

I am beginner and want to learn V C++

I want to learn visual  C++ 2005 express edition for making some presentation for gaming and some slideshows of my own!

View Article

VC++ Console App - is it possible to add a callback from a connection point??

I have added in a callback from a COM connection point, from my VC++ console App. The QI on the ConnectionPointContainer , FindConnectionPOint and Advise all work OK. However in the EXE that has the...

View Article


How to use ATL in Visual C++ 2013 RC

I have an existing Visual C++ 2012 application that hosts the Windows Media Control.  I pretty much copied code from the Microsoft example to do it.  Here is the link to the...

View Article

C++ Program for Extracting data from windows logs in different...

Hi,How we can do the filtering and save each log entry into that file format ?  

View Article

Five processes to do one WMI query!

I have a little app which outputs information on the system uptime.  It executes four WMI methods in succession (later releases them and exits).  The target machine is the local Win7 machine...

View Article


My application steals focus from other application

My application is VC++ MFC MDI application. When i run my application on Windows 7, it steals focus from other application whenever a new document is created. In Win XP, I had not faced this issue. Any...

View Article


ws2_32.lib(indef.obj) : fatal error LNK1103: debugging information corrupt;...

hi,   i am getting the error    ws2_32.lib(indef.obj) : fatal error LNK1103: debugging information corrupt; recompile module   while trying to build the nanomsg 4.0 library with cmake. i am using the...

View Article

CMFCButton does not receive WM_TOUCH events

I am writing an MFC desktop app using Visual Studio 2013. I derived a class from CMFCButton. I have overridden the OnTouchInput() function in this class. I have overridden the PreSubclassWindow()...

View Article

CreateFile with both GENERIC_READ and GENERIC_WRITE

Hello,I'm writing a program to talk to a PIC18F14K50 via USB. First there were two seperate functions for creating a read handle and a write handle likeDeviceHandleLocal=CreateFile(DevicePath,...

View Article

Draggin and dropping functionality in windows 8 environment

Hi, I have developed an application in which i have icons in left side pane of application which can be dragged and dropped in client screen. Application is working fine with all the resolution except...

View Article


WinHttp: help troubleshooting WinHttpSendRequest failure with...

I'm writing a client application. The application is trying to connect to a server over SSL using WinHttp API.A regular set-up (WinHttpOpen, WinHttpConnect, WinHttpOpenRequest) is always successful,...

View Article

How to Create LPGRPICONDIR from in memory HICON?

How to Create LPGRPICONDIR from in memory HICON?

View Article


How to associate a custom event function with multiple arguments to a managed...

Hi,New to event driven programming. Please correct my misuse of terms.In Visual C++ the code generator generates such event handler function:private: System::Void foo(System::Object^ sender,...

View Article

help with basic c++ function homework problem

Please whoever answers this try to make it sim[le and easy I am very new at this.this is the question:Write a program that simulates the dial of a phone number. The program will input a phone number...

View Article


Always returning DXGI_RESIDENCY_FULLY_RESIDENT

So I'm running Win7 have a video card that is 512mb DX10, and in a test application I load 800mb worth of textures.  I'm getting readings for dedicated vram usage and system (shared) vram usage from...

View Article

CP/M SWEEP

seems that the old CP/M command called SWEEP can still find a job.the way it worked, it would use the syntax:SWEEP DELETE *.BAKwhich is roughly the same as del *.bak /s with the modern command...

View Article

Problem with receiving UDP packets from two sources on one socket

We currently have a a desktop application that can use two IP addresses but only binds to one IP. We are having a problem on Windows 7 whereby a UDP socket bound to one address on a particular port...

View Article
Browsing all 15302 articles
Browse latest View live