-
- need help to deal with char* pointers on COM interfaces
by HCTwinJava
- 5 Replies
- Last post
by Brian Kramer
- I need to reimplement legacy COM interfaces (derived directly from IUnknown). A lot of methods on the old interfaces are equivalent to the following:
HRESULT setValue (const unsigned char* value); HRESULT getValue (unsigned char* buffer, int bufferSize);
The pointers on both methods are in fact the addresses of unsigned char arrays, which may be allocated on the old COM client's stack. The C
-
- How do I detect an application crash ?
by Piyush Hari
- 8 Replies
- Last post
by Simple Samples
- Hi, I have developed a windows client application in Visual C++ . I am now developing an Error-Reporting feature so that whenever my application crashes, I can report it to my server. My simplest algorithm will be : 1) detect a crash 2) pop up the UI to let the user send additional data 3) send crash data + user's additional data First, I want to know how can I detect an application crash on wind
-
- Microsoft Visual C++ 2005 Redistributable
by netas
- 0 Replies
- Last post
by netas
- Hi,
I'm trying to install MSN Messenger and I get an error saying that the installation of the Microsoft Visual C++ 2005 Redistributable has been suspended and that I have to undo the changes made by this installation in order to proceed.
Any ideas
Thanks,
Neta.
-
- error PRJ0003 : Error spawning 'cl.exe'
by danielcpp
- 0 Replies
- Last post
by danielcpp
- hi Ive tried everything to resolve the issue. I made sure my project VC++ directories are pointing at the $(Program Files\Microsoft Platform SDK\bin, lib, include directories.
I couldn't find the vccomponents.dat file to delete.
I tried compiling as a user and administrator to no avail.
I'm copying the SIMPLE code sample directly from the help files:
#include "stdafx.h"
-
- "System" namespace does not exist?
by natcitytester
- 7 Replies
- Last post
by Nishant Sivakumar
- I copied the example from Visual studio C++ examples for DateTime
but it compiles with error:
error C2871: 'System' : a namespace with this name does not exist
after comment out the DateTime declaration, turns out this sentence is not accepted by the compiler:
using namespace System;
why this sentence is not OK any help
-
- Problem with calling C++ Dll in C# Appliaction
by Le.W
- 7 Replies
- Last post
by Le.M2P
-
- Visual C++ Express and DDK for HID interfacing
by crazedc+&#
- 4 Replies
- Last post
by crazedc++
- I hope someone can help as I've pulled out virtually all the hair I have left!
I have Visual C++ Express installed on my machine with the DDK v 3790.1830 and Ive been trying to link in the most basic HID code (from Jan Axelson) but I just cannot get the linker to stop pulling up an unresolved error on calling HidD_GetHidGuid(&HidGuid);
Ive tried all of the included basic configurati
-
- Importing an existing resource file into 2005?
by Miss_T
- 1 Replies
- Last post
by Simple Samples
- I am re-writing a Borland Pascal 7.0 program in Visual Studio C++ 2005. I have the original resource file (created with Borland Resource Workshop 1.02) with the string table, dialog boxes and accelerators. I would like to import this into 2005 so the dialog boxes can look exactly the same (since that's the requirement from my customer). Does anybody have any suggestions about how this can be acco
-
- Registry entries in Vista
by Anonymous_bob
- 3 Replies
- Last post
by Anonymous_bob
- The information that my application retrieves and saves in the registry is not the same information that I am able to find or view using regedit. This only happens in Vista.
If I use a copy of my application created in Visual C of developer studio 6.0, the information in the registry is as expected. The same application compiled and linked in Visual Studio 2005 does not retrieve or save registr
-
- Problem in Image Retrieving
by krishnasamy
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi,
I am retrieving the image from DLL through vc++ dll. Actually Image is retrieving in Callback function of main function. When I writing that image file inside of the Callback function then no problem in retrieving. At the same I want to send the Imagedata to the another function and write the same which cause the error.
Here I given that code,
//Callback function
pr
-
- How to change Static label text alignment at runtime
by Amr Ouf
- 6 Replies
- Last post
by Amr Ouf
- Please help me change STATIC label text alignment at runtime I have used the following but it's not working this->GetDlgItem(IDC_STATIC)->ModifyStyle(WS_EX_RIGHT|WS_EX_LEFT,WS_EX_LEFT,0); Thanks in advance.
-
- Assert in GetLine when exitting a console app
by DJHBeek
- 7 Replies
- Last post
by Simple Samples
- Can anyone tell me why I get the following assert when I use the X in the upper right of the console window to exit out of the following test application
ASSERT:
File: f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\afxtls.cpp
Line: 271
SOURCE CODE:
// getlinetest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
-
- Different link command generated for these two similar cases??
by Yogi Watcher
- 3 Replies
- Last post
by Yogi Watcher
- Hello,
I have Visual Studio-2003 and I am building a C++ executable.
Can somebody explain why the linking command line generated by VS is different between following two cases I don't think there should be any difference.
Case-1: following is a section from .vcproj file for linker tool
Code Snippet <Tool Name="VCLinkerTool" AdditionalOptions
-
- Issue about the expression int _time = GetTickCount().
by Rush hour
- 11 Replies
- Last post
by ChopperDavo
- Dear all, In my program, I used the following expression to get the current system time, i.e. int _time = GetTickCount(); In the debug mode, _time can get the right value. However, in the release mode, it never get any value. Can you help me to figure it out B.W. B-D
-
- Is it the END of MFC/COM/ATL
by Preeteesh
- 1 Replies
- Last post
by Bruno van Dooren
- Hi, From past quite sometime i have been working on MFC/Win32 API. Also i have started working on COM/ATL. I have been seeing the changes, the invention of .NET and now as been .NET 3.0 it looks like most of code is started to be developed in .NET instead of MFC. Even it looks use of COM/ATL is going to be lot less. I have some queries. 1.) Whats the future of MFC/COM/ATL 2.) which are the condi
-
- Graphics - a hidden buffer
by bucz
- 4 Replies
- Last post
by bucz
- I want to draw some plot. I want to draw some objects, like grid, once and then only paste them on puropse into the target graphics context in OnPaint(). How to make a kind of "buffer" for this image of the grid
-
- Cant install eithier of the updates...
by ShiningSaber
- 2 Replies
- Last post
by ShiningSaber
- hello, I am using windows Vista For some odd reason, neither of the patches work, they have an error of me not having the right program. Since I downloaded it yesterday does it already come with the vista/other patch Thanks in Advance!
-
- Setting up the debugger?
by Ricky Pusch
- 7 Replies
- Last post
by Simple Samples
- Hi everyone, I am developing a QT application (using QT 3.2.0 Educational). After some time, I managed to get the application running through VS instead of at the command line. However, I simply used a QT-provided tool to convert a QT project (built in QT designer with .moc files and such) to a VS project. As such, it set up a bunch of the options in such a way that the debugger does not work. I t
-
- Drawing on desktop background before background icons are drawn is difficult
by doojin
- 11 Replies
- Last post
by Simple Samples
- How can I do it in visual c++
I want to do it in vista and windows xp.
Please help.
-
- GetGuiResources doesn't return for many seconds
by autumnrain
- 4 Replies
- Last post
by Simple Samples
- Hi
I have a strange problem with GetGuiResources not returning to the caller for a very long time. I have seen this in many logfiles of the clients over the past year, but always discarded it as impossible. But now it has gotten much worse and the number of bug reports in that area has grown dramatiically. This makes me believe that something actually might be wrong with it.
I have f
-
- Beginner Help
by Starstryker
- 3 Replies
- Last post
by Shakje
- Hi there! i'm new to c++ and i'm have a porblem with a piece of code for some reason it sometimes gives me results twice i'm not sure what i'm doing wrong, any help will be appreciated.
// number sort.cpp : main project file.
#include "stdafx.h"
using namespace System;
int main( array <System: tring ^> ^args)
{
int A, B, C;
Console::WriteLine
-
- debug (c++/cli) dll on c# application
by Martin J. Kim
- 5 Replies
- Last post
by Martin J. Kim
- I have dll file created with c++/cli and it pdb file. (I have no project folder or files). and I am now testing on c# application with it. In this step, I can't track(debug) my own dll file. I mean it just generated exception. I can't step inside(F11). What kinds of jobs I can do in this
Code Example
using System;
using System.Data;
using MyFoo;
class Test
{
st
-
- Problems using GetProcessesByName in C++
by little miss confused
- 10 Replies
- Last post
by Simple Samples
- Hi All,
I'm trying to write a piece of code to search for all system processes by name
To do this, I'm using :
array <Process^>^matches = Process::GetProcessesByName("notepad");
The problem is, I don't want to use a hard-coded value to search for, I want my function to accept the name of the process as a parameter.
However :
string procName =
-
- 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!!
-
- Hexadecimal Representation of an object?
by calmal20
- 6 Replies
- Last post
by robben07160
- Hi,
I would like to get the hexadecimal representation of an object and display it as a String, how would this been done using C++ .Net (VS 2003)
Thanks!