-
- Is there any difference between Unicode char set and Multi-byte char set ?
by Lejing
- 4 Replies
- Last post
by Mike Danes
- Is there any difference between Unicode char set and Multi-byte char set in the Visual Studio 2005
Thank you!!
-
- Major difficulties with Visual Studio Help... any tips?
by T.C. Phelps
- 4 Replies
- Last post
by T.C. Phelps
- Hi folks,
I'm getting going with Visual Studio 2005 (I briefly used VC 6 but that was years ago) as part of a work project but am having a heck of a time trying to figure out how to do things using the help files. They seem to be a mishmash of everything ever written for windows development and the search functionality is all but non-functional. Does anyone have any tips for using this, it's go
-
- Create an *.EXE from *.EXE in Visual C++ ?
by JGLP
- 9 Replies
- Last post
by Simple Samples
- Hi After building my project it will be created the executable file (*.EXE) Now i need to generate another application from "myown.exe ". For example, if i run the " myown.exe " it will be created on the same folder other application " test.exe " that has the C++ code written on the Project myown Anyone knows how can this be done And give a small example please Tha
-
- BackupRead "Access denied" Problem (and backing up files in general)
by cottonmouth
- 9 Replies
- Last post
by Simple Samples
- Hi all, I'm creating a backup application and I need to be able to read from and write to any file in the computer. This includes system protected and files locked by other processes. Currently I'm trying to read the registry files in the C:\WINDOWS\system32\config directory. My code successfully acquires the SE_BACKUP_NAME privilege, can get HANLDEs to the files using CreateFile, and can retrieve
-
- console app shuts when it executes
by MJB3K
- 4 Replies
- Last post
by Ghost (C/C++/VC++)
- Hi, when i run a simple console application that I have created, it opens like it should, but it shuts straight away. Why is this doing this
this is the code...
Code Snippet
#include <iostream>
using namespace std;
int main ()
{
// declaring variables:
int a, b;
int result;
// process:
a = 5;
b = 2;
a = a + 1;
result =
-
- IDiaSymbol::get_callingConvention?
by BarryTannenbaum
- 5 Replies
- Last post
by BarryTannenbaum
- I modified the Dia2Dump sample application to add the following code to the bottom of the PrintFunctionType function: DWORD dwCallConv = -1; HRESULT hr; hr = pSymbol->get_callingConvention (&dwCallConv); if (S_OK == hr) { wprintf (L" [%d] ", dwCallConv); } I then dumped the version of vc80.pdb generated by building the sample. I *never* saw a successful return from get_ca
-
- shutdown the system using windows SDK
by Y Iguchi
- 1 Replies
- Last post
by Prasad Somwanshi
- Hi, I want to programmatically force 1.Logoff of system. 2.Hibernation of the sytem. 3.Shutdown of the system. How can i achieve using the windows SDK. Regards, Y Iguchi
-
- fatal error RC1047: too many -I# options
by Xavi.Planes
- 6 Replies
- Last post
by Sdi
- I'm using Microsoft Visual Studio 2005 (SP1). I need to include more than 93 directories in the "Aditional inlcude directories" parameter of General Resources, in the project properties window . When I put 93 directories and when I try to compile the resources, it gives me the following error:
1>fatal error RC1047: too many -I# options, 'C:\Program Files (x86)\Microsoft Visual
-
- how to change the color of a combobox in mfc?
by kaye551082
- 5 Replies
- Last post
by Pintu Shukla
- i would like to know if i can possibly change the color of my combobox control the normal color would be gray (i mean the button behind the textbox of a combobox). is it possible the change this in to another color or is it possible to load an image so that i can change the color or design of the combobox button if so, please let me know. you can also give me some keywords to search on further.
-
- Accessing JavaScript variables from VC
by Fred E.
- 4 Replies
- Last post
by Fred E.
- I have a Microsoft Web Browser Control displaying an html document that contains JavaScript. The JavaScript has a global variable var FE = "Fred E". In VB 6, I can acess this variable via wbMain.document.parentWindow.FE. This seems somewhat magical since FE is not a property on the IHTMLDocument2 interface. At any rate, what is the analogous way to access this variable from a browser emb
-
- USB
by jruelan
- 1 Replies
- Last post
by Bruno van Dooren
- A USB printer is inserted in my computer, I want to know how can i determine if a printer driver is already installed for that printer in my computer, of course i am aware of the Found New Hardware of Microsoft but i want to use my own using C++, any help anyone I am quite new in WMI classes tnx very much
-
- C3767
by Bobidybob
- 4 Replies
- Last post
by Bobidybob
- I'm trying to set a property of a picture box in a Visual Studio 2005 form application, but I'm getting a C3767 error. basically, im trying to set it to support transparent backgrounds. the line of code that throws the error is:
Code Snippet
this ->pictureBox1->SetStyle(System::Windows::Forms::ControlStyles::SupportsTransparentBackColor, true );
Error
-
- msvcr80.dll not found
by Intelligence
- 14 Replies
- Last post
by Ted.
- I've created a simple Win32 console application. When I try to debug it, I get the message: "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny
-
- Can't catch correct exception type
by RoryD
- 3 Replies
- Last post
by RoryD
- Hi, I'm having a weird problem where I can't catch a really simple std::exception. The output of the code below for me is "unknown exception"
#include <exception> #include <cstdio>
#include <exception> #include <cstdio>
int main(void) { try { throw new std::exception("bork"); } catch (std::exception const&) { pri
-
- C++ 6.0 Closing a document
by Cheshiredd
- 5 Replies
- Last post
by Simple Samples
- I have a bit of code that has stopped working in the past 3 months, actually about 05/14/07. Below is the code chunk. What it should do it minimize, then maximize a window (usually Adobe or MS Word), then close the current document that is open (Alt F, C). What it currently does is just minimizes and maximizes the window. So does anyone have any idea why this would have stopped working 2 months ag
-
- -> , :: , etc..
by nate-d-o-double-g
- 3 Replies
- Last post
by TilakGopi
- I'm really a vb.net guy but have VS.NET, i never really bother with C++ but now i think its time. How do i know when to use the :: , xyz^, and -> etc In the other languages i only need the dot operator so these are confusing!
-
- How to strip out leading and trailing spaces?
by Bassam72
- 2 Replies
- Last post
by Bassam72
- Dear folk,
Using win32 C++, I am writing a simple program that reads in a single line from a file, strip out the leading and trailing spaces, and then write out the line to a different file.
My question is that is there a function that strip out (trim) these spaces
Regards
Bassam
-
- listen to shortcut key
by xishan shigri
- 1 Replies
- Last post
by Shakje
- C++
i want to listen for a short cut key (e.g CTRL+V) by an application running in a system tray.
Firstly i want to ask that is it possible to use the Global Shortcut key which is already been used by windows If yes How
Secondly If i have to to listen for a shortcut key which is not in use of window. How could i do that
-
- how to copy all elements of a 2d array to another 2d array?
by monchhib
- 4 Replies
- Last post
by monchhib
- I just know the copyTo function is only suitable for 1-d array . But how about 2-d array is there any faster and easier method that can copy all elements to another 2d array without using any loops to go through each elements thanks!!
-
- When using the BitBlt function with CAPTUREBLT it caused the mouse cursor to blink, how can i prevent that
by BobGuro
- 2 Replies
- Last post
by Brian Kramer
- When using the bitblt function to capture the desktop screenshot with
(CAPTUREBLT | SRCCOPY) it caused the mouse cursor to blink. This does not happen when using the SRCCOPY flag alone. The cursor blinks only when i add the CAPTUREBLT flag. Why
this happens and how can i use the BitBlt function with the CAPTUREBLT
flag without the mouse cursor to blink every time i call that function. Thanks. B
-
- Reject Suspend
by Solar9
- 3 Replies
- Last post
by Ben Anderson MSFT
- Guys,
What is the problem with the following Code I am running XP/VC6.0
Code Snippet BOOL CTestApp::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_POWERBROADCAST) { if(pMsg->wParam == PBT_APMQUERYSUSPEND) { pMsg->wParam = BROADCAST_QUERY_DENY ; AfxMessageBox("Never got reach!"); } } return CWinApp::PreTranslateMessage(pMsg); }
How do I t
-
- Using Visual Studio 2005, how do I create a stand alone, no DLL, C (C++) executable
by J. Morrison, Jr
- 5 Replies
- Last post
by Simple Samples
- Hi all. I'm trying to create a Win32 console application using Visual Studio 2005. The only requirements I have are:
The resultant application (.exe) must run, unchanged, on Win 98 to Vista 64 (and beyond if possible)
It must be truly stand alone. No object other than the .exe is needed for execution or are to be installed on the target computer. No helper DLL! No support library! No nothi
-
- friend function generates c2248
by Juan Carlos Trimi&#241
- 3 Replies
- Last post
by Brian Kramer
- All,
I am having problem with a friend function generating error c2248. The code below shows what I am trying to do:
gregorian.h
---------------- class gregorian { friend bool operator<=(const gregorian &lhs, const gregorian &rhs) throw(); public: gregorian(void); //Default constructor (current system date). ... private: class gregorianImpl *pImpl;
-
- Error when trying to destroy a group of items in a vector...
by PeteJM01
- 1 Replies
- Last post
by einaros
- I am getting the error:
error C2248: 'std::vector<_Ty>::_Destroy' : cannot access protected member declared in class 'std::vector<_Ty>'
This occurs on the second last line of code here. I have put the definitions of the variables that are not in this function so that you can see what types they are.
The aim of this code is to delete a group of items in the vector. Is there per
-
- evt2002web_min.exe
by BuckshotWilson
- 4 Replies
- Last post
by BuckshotWilson
- Does anyone know how to uninstall evt2002web_min.exe