Working on a school project, the program is supposed to read from a text file that has a record about a song in every line, fields separated by ";".
Anyways I have no knowledge of databases, and I just want the quickest way to create a database from that text file, and also i will need to change some of the fields of the records once in...
Hello All,
I am using VC++ to create a process from a service on Vista using CreateProcessAsUser. The process creation is succeeding when i execute this code by login on the machine locally. The same code is failing when I am using Remote Desktop (mstsc) to login in to my machine from another machine and launch my App.
I can understand...
I am using Visual C++ 2008 Express for the first time for a project. And I can't seem to be able to split the .h & .cpp files for classes I'm writing. I was under the impression that you add a header file and prototype the class in there, and then you add a .cpp file with the implementation into your source files directory. Then when ...
Hi all,
I have to use the gdLibrary (http://www.libgd.org) in a C++ App on MS Windows XP Prof. SP3 32bit - and I'm trying and googleing for two days now without success. Does anyone of you use libgd with MS VC++ 200x EE?
My problem: It has to to compile with MS Visual C++ (e.g. the 2008 Express Edition - fixed 3rd party condition)... b...
Hello. I want to intercept dll's loading so I can use them. My first idea was to hook GetProcAddress. Surprisingly, by hooking it, I can only intercept calls made within the process that owns my library. (I opened another executables that call GetProcAddress and those calls don't get intercepted) (I guess because it is dynamically compil...
HI, Just ran into a problem. How to I change a picturebox's picture from within a different header file.
If I do it in the same .h file as the Form I am working on I use:
sq1->Image = bi; (which loads in a bitmap)
but when I do it from another header (i've included the correct header file), I get
"sq1 is an undeclared identifier"
and
...
I'm quite new to visual c++ but not c++. Anyway I need to populate a listbox with an object of a schedule that contains a list of songs. So for one schedule, i want to print the names of the songs in the textbox.
I set bindingsource as the schedule class, but where do i write the code for it? In the forms.h file (where the listbox is)...
I'm developing an application in MSVC++ 2003 (not using .Net at all) it's an older application uses GDI primarily. A lot of our function prototypes include a reference or pointer to a deviceContext in the parameter list. I figured that within any of those functions I can create a Grpahics object using Graphics.FromHDC(dc) and draw my s...
I have a large C++ program that modifies the FPU control word (using _controlfp()). It unmasks some FPU exceptions and installs a SEHTranslator to produce typed C++ exceptions. I am using VC++ 9.0.
I would like to use OpenMP (v.2.0) to parallelize some of our computational loops. I've already successfully applied it to one, but the n...
I have a fully functioning classes and functions for a program I need to build. I'm using Visual C++ to put together the GUI, and use the existing classes and functions in the event handlers of the GUI to manage the program.
The problem is I'm having a really hard time putting together the C++ code with the GUI. For some reason even tho...
I'm using Visual CRT's memory leak detection routines from <crtdbg.h>; when I call _CrtDumpMemoryLeaks one allocation is reported consistently on every invocation of the program:
{133} normal block at 0x04F85628, 56 bytes long.
Data: < > B0 81 F8 04 B0 81 F8 04 B0 81 F8 04 CD CD CD CD
The address varies but {133} is a...
Hi
I am writing a windows application (written entirely in C++) which reads files from a storage card on a mobile phone running Windows Mobile. The tough part is, I don't know how to make my application detect the event that a user has connected the mobile phone to the USB of laptop. I did some reading on MSDN and have written a small c...
I'm really confused by this unicode vs multi-byte thing.
Say I'm compiling my program in Unicode (but ultimately, I want a solution that is independent of the character set used).
1) Will all 'char' be interpreted as wide characters?
2) If I have a simple printf statement, i.e. printf("Hello World\n"); with no character strings, can I...
Some code first:
class CInner {
public:
CInner( const CInner& another ) { //impl here }
private:
// some member variables
}
class COuter {
public:
COuter( const CInner& inner ) : inner( inner ) {}
private:
CInner inner;
}
Yes, in COuter::COuter( const CInner& ) the parameter has the same name as the member variable.
...
Hi all,
I'm using Visual Studio .NET 2003, and I'm trying to convert a program written in purely ANSI characters to be independent of Unicode/Multi-byte characters.
The program has a callback function of pcap_loop, called "got_packet". It's defined as
void got_packet(u_char *user, const struct pcap_pkthdr *header, const u_char *cpacke...
I have a Window that needs to be redrawn when the wallpaper changes. I can detect normal wallpaper changes by simply checking for WM_SETTINGCHANGE with wParam SPI_SETDESKWALLPAPER.
I'm not really happy with my current solution which simply uses a timer to check if the wallpaper has changed once a second. I've considered trying to parse ...
Is there a place to set header and library path for ALL projects in VC2010 express?
When i set them they seem to only apply to a single project (eg i have to set them everytime i start a new project).
...
So far, my understanding on Protected mode Vista is:
In vista ,by default any process runs in an Limited user Privileged (Protected mode).To run the exe in admin, we need run explicitely using "run as administrator".
Any Process (exe) which is launched by other process should run in a same integritylevel or even lesser int...
We are using VC++ to connect to the SQl2005 Express in my local machine.
But we are able to access when there is network connectivity to my system.
But we are not able to access when we are removed the network connectivity.
Please help me out if any one faced with this scenario.
...
Hi how to get the language name,how to find the language that the OS is installed say eg : If the OS is Japaness then i should display the language "Japanness"
...