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

Access violation reading location 0, due to source file path ?

I am wondering if you have some tips on how I can debug a very strange problem?I have C++ application which crashes or runs fine depending on the path of one of its source files.I can work around it by...

View Article


[C++/CLI] How to call function from another Form

Hello! I have 2 forms: DivIP (parent form) and VLSM (child form).  All functions in DivIP form i use #include "iplib.h" (It's my header).  Now in DivIP form, I call VLSM form:public: System::Void...

View Article


.ICO images...How to [convert a PNG image to .ICO] and include it in...

HI:I would like to include a personal image/logo in my Windows Forms (I'm using Visual C++ Express Edition 2010, by the way) and my understanding is that I need an .ICO image in order to include it [in...

View Article

when Run() method gets called in mfc multithreaded

Hi  I am working on legacy mfc project; I have a class (CProvThread)inherits CWindThread and a second class (CProvTignThread) extends this classpulic class CProvThread: public CWindThread,public...

View Article

Data not sent to server from short lived client

Gentlefolk,I am porting a product that was originally written for Windows NT using Visual C++ 6, to run on Windows 7 using Visual C++ 2010. (We have gone through the intermediate step of Windows XP and...

View Article


Cannot re-arrange controls in MFC Ribbon - Visual Studio 2010

I have an Office-type VC++ application with a ribbon interface. I have populated the ribbon with several categories, each category containing several panels, and each panel containing several...

View Article

crtdll/dir.h not found

Hi allI am new in this forum. Can any one help me in solving the following problem."Cannot open include file: 'crtdll/dir.h': No such file or directory"I am using visual studio 2005 on windows vista....

View Article

genealogy

I have noticed that current genealogy software is garbage. They lack many permutations needed.at its simplest is a person class, data of birth, mother and father.deriving additional classes seems easy...

View Article


CArray

I am using structure in CArray class. struct info { public:    info() {       type= 0; bSelected   = true;    };    int type; bool bSelected;     };CArray < info,info> m_info;how to intialize...

View Article


use one class in regular dll

Hi all I am a developer and i use MFC 2010 I have a problem Which i think that it is difficult to resolved In my regular dll, i make a class which is derived from CFormView I want use this class in...

View Article

Write/GetProfileString doesn't work while process is lanuched remotly by WMI

Hi Guys, I have an issue is CWinApp::Write/GetProfileString cannot store/retreive data into registry when the process is lanuched remotly by WMI, in my App's InitInstance { SetRegistryKey(_T("Test"));...

View Article

EEFileLoadException on unit test(clr) using static lib(clr) and .Net assembly

 I have a unit test project using shared MFC dll compiled with /clr. This test is instancing a class "Foo" from a static library (also using shared MFC and /clr) and then calling a method "virtual void...

View Article

how to use CreateProcess in c++

hey I try to start a program (ContentWriter.exe) with my program. but it just gives me error code 3 ("The system cannot find the path specified.") I suspect it may have to do with my address contains...

View Article


C++/Net SerialPort->Read losing bytes

 Working in VS2008 C++/NET.I have a SerialPort (spSIE) from which I am reading data at 921600 baud.  I have the following code:private: System::Void spSIE_DataReceived(...) { array<unsigned...

View Article

Will the registry key be leakage if the function ReCloseKey fails?

On MSDN, the description of the failed return value of the funciton ReCloseKey is below, in which does not state whether the key will be leaked.A nonzero error code defined in Winerror.h indicates...

View Article


What happens to wake timers set from desktop apps in Connected Standby mode...

I developed a desktop app that allows users to set up wake schedules via the SetWaitableTimer API:http://msdn.microsoft.com/en-us/library/windows/desktop/ms686289(v=vs.85).aspxMy question is, what...

View Article

VC++ compiler instructions for contagious memory allocation for global...

Hi All,Does Microsoft VC++ compiler provide option for allocating memory for global variables as per user wish or in continous manner without padding.I need to global ram structures to be in continuous...

View Article


C++/CLI Project for .NET 4 broken after installing Visual Studio 2012

I am aware that .NET 4.5 is an in-place replacement for .NET 4 and that for targeting the "original" .NET 4 platform, the .NET 4 reference assemblies can be used. This works fine for C#.BUT: I have no...

View Article

scanf being ignored

char ch('y'); try{ while('y' == ch || 'Y' == ch){ // later on printf("Do you want to continue(y or n):"); scanf_s("%c",&ch); printf("just read:%c\n",ch); /*do { ch = getc(stdin); }while (ch ==...

View Article

[Dev C++] - how call the compiler by DOS?

how can i call the compiler by DOS?

View Article
Browsing all 15302 articles
Browse latest View live


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