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

Accessing the Env Var path from "cl"

It seems that cl.exe doesn't do a particularly good job of using the env vars when trying to build.  Case in point, using qmake, cl is called and asked to build qt given a command line type of input....

View Article


Virtual function with different number of arguments

I thought it is allowed to have different number of arguments in virtual functions between base & derived class.  But I kept getting this error:...

View Article


Visual C++ Redist 2010 SP1

Hey, i've formated my laptop and i'm now using Win7 professional 64-bitWhen i was trying to install rainmeter it prompted that i couldnt install and that i had to manually install the C++ redist...

View Article

Button not refreshing on going different window forms

I had created buttons on a dialog using resource editor(using Visual C++,X64) . On the button click  event i have to show another window which is exactly of the same size and at same place (For further...

View Article

hexadecimal to decimal c++

hi,i have a value A2, it is a hexadecimal value, how can i get the decimal equivalent of A2 through code.litu Here

View Article


Edit Control question

Hi,all, I have some Edit controls that all have associated control variables (float type). I want to use these variables to control some parameters of my main program (pass values to the parameters)....

View Article

How to interchange data between Java Program and C++ Program(Java to C/C++ &...

I constructed a java program using netbeans IDE that has ability to connect with a respective DLL; I want to connect and interchange data between my java program(.jar) and VSC++ program(.exe) through...

View Article

two object graphics app.

My app uses two objectsI am trying to transfer data from OnButtonClick to a math object.e.g.[onbuttonclick]{updatedata()object my_obj;my_obj.get_input(coeff1,coeff2,coff3);}//my_obj.cpp{public:void...

View Article


component VC++ : *IUnknown->Release() is working in mode debug but crashes in...

I  release my components  with it's *IUnknown1) IUnknown->Release() seems to work well  in mode debug but crashes in mode release.(after le AfxOleUnlockApp, by deletion of the com)2) other symptom,...

View Article


Bitmap image in listcontrl column header

hi,how to retrieve the image in column header of list contrl.i have loaded the image in column header,nw i want  the name  of the image that ia already loaded.I have loaded bitmap image in column...

View Article

c++ code required for printing simple 2d graphics line to printer.

Can anyone help ?The printing sample does not work with my code.n.Wright

View Article

The function DeviceIoControl( for IOCTL_DISK_GET_DRIVE_LAYOUT ) returns error...

Hi, I have implemented the following function in my cpp code to retrieve information of the disks of a Windows system:-DeviceIoControl ( hDevice, IOCTL_DISK_GET_DRIVE_LAYOUT, NULL, 0, buffer,...

View Article

expected primary-expression before ‘=’ token

Why did this error occur (see title)?  Thanks in advancefctn(cl *cA) {    cA->dA_xsum=KA*KRVDT*(0.01*cA->dA_xfo*cA->dA_xc-cA->dA_zv1);}int main() {cl cA;fctn(&cA);return 0;}class cl {}

View Article


How to get message OnUpdateCommandUI from CMFCRibbonBar at DLL

Hi. I have an SDI application (EXE), with its RIBBON. This application have plugins as DLL. In these plugins I have created an CFrameWnd, with another CMFCRibbonBar... My problem is... I dont get...

View Article

GetOutputTextExtent is getting the string size smaller than printer out in...

I use GetOutputTextExtent to get the string size and make sure it fit in my report template. The font and size of the string is setup before the print.On XP, the report prints fine with my string fits...

View Article


Adding External Dependncies

I am running Visual Studio 2012 and am trying to get someone else's code working.  Somehow, about half of my include files are throwing the "Error: cannot open source file" and "fatal error C1083"...

View Article

Unable to register windows class.....

#include <Windows.h>    const char g_szClassName[]="myWindowClass";    LRESULT CALLBACK WndProc(HWND hWnd,unsigned int msg,WPARAM wParam,LPARAM lParam)    {        switch(msg)        {...

View Article


GDI error, and windows can not show a dialog when using CProgressCtrl

I use VS2012 in windows7I draw 128 CProgressCtrl in a windows, and a button to show a simple dialog(only has 'ok' and 'cancel' buttons)the problem is if I draw more then 35 CProgressCtrl, when click...

View Article

Two DLL Assemblies

HelloI had developed .NET Library C# Assembly AUT.DLL 6 months ago and works very well. It gets loaded in memory by AUT.EXE and is responsible for obtaining data (thru Socket TCP/IP) from another...

View Article

problem writting a struct at file

Hello, I am creating an  mfc application where a struct struct CallLogEntry {    string name,phoneNumber,time;    int duration; };i am writting this struct to file by using following method:    void...

View Article
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>