all groups > visual c > may 2004
Filter by week: 1 2 3 4 5
HttpSendRequest Error : 12002
Posted by Stanne at 5/31/2004 7:36:01 PM
Hi, i'm developing an application which make use of the Wininet API t
download a file from a web server. However, the application runs fine al
most of the machine which i tested except for one laptop running on Wi
XP
This particular machine give me an HttpSendRequest Failed Error of 1200
which... more >>
C++ and C# interoperability
Posted by Bruce Schechter at 5/31/2004 5:43:52 PM
Background: I have nearly two years of experience with C# and the .NET
framework, as well as a fair amount of C experience from many years ago, but
no C++ background (until about two months ago.) Now, I am helping a team
develop an application with a UI based on C# and business logic coded ... more >>
Memory Allocation in Managed C++ Results in Exception
Posted by Tyler at 5/31/2004 9:51:21 AM
I have what I imagine is a very simple Managed C++ memory allocation
question. I have the following line of code in a static method of a managed
C++ class that always generate a System.NullReferenceException ("Object
reference not set to an instance of an object."):
char * ptvszHexString =... more >>
Main Window editing in C++/VS 2003 .NET
Posted by KASpencer at 5/31/2004 8:26:03 AM
How do we edit the Main Window of a Visual Studio C++ application **graphically** - i.e. without having to put code into the .cpp file directly.
We cannot find a way to show the contents of the Main Window and therefore cannot add buttons or edit boxes et cetera without resorting to code - which d... more >>
Newbie needs a help with Vis C++ Toolkit 2003
Posted by cedomilj NO[at]SPAM yahoo.com at 5/31/2004 8:10:18 AM
UNABLE TO COMPILE
Good morning:
I would like to ask for the help, with compiling on Visual C++ Toolkit
2003.
I have no experience with C++, nor with C language. This is my first
try. I follow instruction, but I am not able to get through.
Have downloaded and installed Visual C+... more >>
How to Send/Receive Intensive Data?
Posted by Alper Akcayoz at 5/31/2004 6:01:03 AM
Hello Developpers
I am using Visual C++ .NET Standard Edition 2003 on Windows 2000 Professional. I would like to send intensive collection of data, which includes int, float, names, through ethernet using TCP/IP from Server to Client or vice verse. During this communication the number of data are ... more >>
Managed c++ vs Unmanaged c++
Posted by x_yu NO[at]SPAM nitttou-dot-com.no-spam.invalid at 5/30/2004 10:20:47 PM
Hello,
I'm new to dotnet.
I want to write an app that's communication with a sql server 7
database via ADO.NET. This app need to have fast and stable
throughput. I know that the database access itself will not be the
bottle neck.
The Question is whether i should use Manage c++/C# or Unma... more >>
Newbie help needed on "IOStream.h" vs "IOstream", namespaces etc.
Posted by as mellow as a horse at 5/30/2004 6:20:07 PM
I'm not new to C++, but it has been a while, and I'm defintely new to dot
net.
So to get back into the swing of things, I tried to create the ubiqitous
"hello world" program using a console application. Most of the C++
programming I've ever done has been in Borland products (mostly C++ Builde... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
funny working ListBox or a bug in VS 6.0 ?
Posted by JAGELLO at 5/30/2004 4:16:04 PM
Hi!
I have a problem with setting the character set in my ListBox (List). When I create a CFont object with a specific character set and I set that font in the Device Context recieved from the ListBox, then it is OK. I can write through that DC in the chosen charset. See Code :
CFont * font = ne... more >>
Viewing statics while debugging
Posted by Tom Doster at 5/30/2004 2:46:02 PM
How can I see the value of a static variable when debugging? Static's don't show up in the variable-window and when I type the name of a static variable in the watch-window the debugger says this the symbol is not defined
I'm in Visual C++ 6.0
Thanks
Tom... more >>
Error On Help Page
Posted by Tom Doster at 5/30/2004 1:21:02 PM
[BTW: I'm running Visual C++ 6.0 (Visual Studio)... Thanks....
When I click on *some* links in the text on the help pages of Microsof
Visual Studio 6.0 for C++ I get an error dialog box with the title 'Interne
Explorer Script Error'. The dialog contents always go something like this
- - - - - ... more >>
Using API functions in Windows Forms (C++)
Posted by yelp666 at 5/29/2004 6:27:42 PM
Hi all,
When I try to use API functions in Windows Form all I get ar
compilation errors. MSDN doesn't help at all in this case. Here is m
code:
(I test it with very simple one Rectangle since I want to do som
drawing)
public __gc class APIFunctionality
{
public:
[System::Runtime::Inter... more >>
Bitmap drag and drop / drawing outside window
Posted by yelp666 at 5/29/2004 2:07:03 PM
Hi all,
I want to write a program that I once wrote in native API. There wa
main window and child window, and I was able to drag a bitmap from on
window to another. Back and forth. I am new to Window Forms and I hav
no idea how to do this now. Any general help would be great. Thx
-
yelp6... more >>
crazy macro problem
Posted by Chris Ellis at 5/29/2004 10:54:26 AM
Hi,
I'm trying to write a macro that will generate managed c++ wrappers of
map. I want a managed iterator and a managed map. I successfully built a
pair of classes (iterator and map) that work fine. I called it IntToIntMap
and IntToIntIterator. When I was finished, I realized that if I... more >>
line numbering
Posted by stingray at 5/28/2004 2:16:03 PM
Hi
I just used Visual C++ to compile a C code. I code a bunch of error messages (mostly syntax errors)
How to get to these errors? Is there any automatic line numbering feature that I can use
Thanks! ... more >>
LARGE_INTEGER arithmetic...
Posted by Need Helps at 5/28/2004 1:21:01 PM
Here is some code of mine for seeing if a printer job, jobs[0], is more than 5 minutes old
FILETIME syst, jobt
LARGE_INTEGER syst2, jobt2, dt
GetSystemTimeAsFileTime(&syst)
SystemTimeToFileTime(&jobs[0].Submitted, &jobt)
syst2.HighPart = syst.dwHighDateTime
syst2.LowPart = syst.dwLowDateTime... more >>
Recommend Books Please
Posted by Micus at 5/28/2004 1:16:49 PM
Hello all,
Can someone recommend books for an unmanaged VC developer moving to
managed extensions. I've searched previous messages (no books found) as well
as the amazon.com reviews (no standout reviews). Sorry for the repeat (as
I'm sure it is).
Thanks,
M
... more >>
Detect memory leaks
Posted by mircu at 5/28/2004 12:55:20 PM
Hi,
I need a tool to check my applicationm for memory leaks. It uses mixed
code and for now I didn't find proper tool. My application is managed
c++ app and it uses mc++ wrappers for my unmanaged code (which uses
MFC). When I stop debugging there is info about memory leaks but I'm
sure that... more >>
Path of my exe file
Posted by Ivan at 5/27/2004 10:21:03 PM
Hi
Maybe my question is trivial, but I need to get fullpath of my exe file where from it is executed esspecialy, when the directory with exe file is not current directory
Thanks.... more >>
Sound advice
Posted by Peteroid at 5/27/2004 6:07:52 PM
Can anybody point me to or give a simple source example of a managed C++
application that can play a wav sound file? I know a little about
playSound(), but it doesn't seem to like to compile (even though it's
'recognized' via type-ahead in the editor). Required header files might be
my problem,... more >>
__property set_ naming issue (managed C++)
Posted by Julie at 5/27/2004 2:15:55 PM
What would you expect from the following:
enum Type { a, b, c };
public __gc class MClass
{
public:
MClass(Type t);
__property void set_Type(Type t);
// etc.
};
When compiling, I get very strange errors (in this case, for the constructor)
where the Type type is compiled as the ... more >>
Default accessor in MC++
Posted by Lidström at 5/27/2004 11:36:26 AM
I have a CS class I wish to write in MC++:
public class UnitsCollection : ArrayList
{
new public Units this[int index]
{
get { return (Units) base[index]; }
set { base[index] = value; }
}
}
Would the MC++ class below be equivalent?
[DefaultMember("Item")]
public __gc c... more >>
default build configurations
Posted by Pete H at 5/27/2004 10:36:06 AM
I would like to have my new C++ projects start out with two configurations, UnicodeDebug and UnicodeRelease, instead of the standard Debug and Release configurations that Visual Studio always creates. Is there a way to configure Visual Studio to do this
Thanks in advance
-
Pete H... more >>
how to make a subarray?
Posted by Need Helps at 5/27/2004 9:16:04 AM
Writing my own algorithm to make a subarray in Visual C++ would be easy enough, but is there a useful function or method for doing this? I have strings stored as TCHAR[] and I want to get substrings of those, but the basic String.substr() function doesn't compile on that. I tried this
TCHAR stri... more >>
SHFileOperation
Posted by John Ericson at 5/27/2004 5:46:04 AM
I am using SHFileOperation() to copy files from the local hard drive a network share using a mapped drive. I want to set the up as a batch process with no user intervention. I have using the fFlags of FOF_NOCONFIRMATION | FOF_NOCONFIRMMKDIR | FOF_SILENT | FOF_NOERRORUI. When I added the FOF_NOERR... more >>
Unable to upgrade VC6 exe to VC7
Posted by Shailja at 5/27/2004 5:19:35 AM
Hi All,
I have an application (EXE) implemented in VC6, that uses
Stringrays Objective Toolkit and Objective Grid classes.
When i try to port this application to VC7 i get various
linking errors mostly with id LNK2001, LNK2005, LNK2019
etc..
For Exampke:
RMSCTreeCtrl.obj : error L... more >>
How to: Add Tip of the Day to MFC app using VS.NET
Posted by EMonaco at 5/26/2004 8:26:48 PM
Anyone know how to add the standard tip of day dialog to an existing MFC app
now compiled on VS.NET? It used to be in the component gallery but I can't
seem to find this or figure out how to do it in VS.NET. Any help would be
appreciated.
Regards,
Erin.
--
Visit us on the web at: http://... more >>
Converting managed int to unmanaged PBYTE?
Posted by Tom Glenn at 5/26/2004 5:38:01 PM
I have a managed method that has an int parameter that has to be passed to
an unmanaged method that takes a PBYTE and associated length as a DWORD.
Anyone have any sample code that shows how to do this?
Thanks.
... more >>
Odd registry behaviour
Posted by Jan Bares at 5/26/2004 4:44:24 PM
Hi,
can someone explain me this behaviour:
(steps to reproduce)
1. Open HKLM/SYSTEM\CurrentControlSet\Services\Eventlog\Application
2. Look at the "Sources" value
3. Now create new key under the "Application"
4. The new key is magically added to the "Sources" value (along with "New
key #"... more >>
_ASSERTE doesn't break into the code
Posted by AP at 5/26/2004 2:56:04 PM
We use a lot asserts in our code, specifically _ASSERTE(exp)
When the assert fires, there is the option to Abort/Retry/Ignore
In VC6 hitting 'Retry' would take us to the code in the debugger but in VC7 there is another dialog "Unhandled exception" with the options Break/Continue. So we have to cli... more >>
How to specify multiple Post-Build Events?
Posted by Polaris at 5/26/2004 11:52:21 AM
Hi:
I'm using VC 7.1. I like to have multiple actions taken after a build is
complete. For example, I'd like to copy the files into multiple directories.
But so far I can only specify ONE action, seems no way to specify more than
one action there, I might be able to use a batch file for it but... more >>
Speech SDK and copy protection
Posted by Atz at 5/26/2004 11:47:31 AM
Hi!
I'm writing some program for voice commands ( for opening some programs (
word, excel )), i
have some problems in this part.
I'v downloaded MS Speech SDK for VC++6 but im using .NET.
Q. 1 .) Can i use this MS speech SDK or must i use the beta version for .NET
?
I'm writi... more >>
managed c++ and native c++ interop
Posted by Jim at 5/26/2004 11:09:57 AM
Hello,
I am writing an application that relies heavily on interop between managed
c++ and native c++.
The main project is managed c++, but most of the classes themselves are
written in native c++ using the
"#pragma unmanaged" to prevent them from getting compiled into MSIL. A few
of the na... more >>
InitCommonControls Link Error
Posted by Randy at 5/26/2004 10:30:06 AM
Hello All,
I have a VC project I created a few years back (Visual Studio 97). I'm now
trying to recompile it under .NET 2003. I'm getting a linker error...
LNK2019: unresolved external symbol __imp__InitCommoncontrolsEx@4 referenced
in function _WinMainN@16
Does anyone know what I need to d... more >>
Grrrrrrrr...... "fatal error C1060: compiler is out of heap space"
Posted by sshelton NO[at]SPAM millenianet.com at 5/26/2004 7:48:22 AM
I am suddenly getting the obnoxious error C1060 when I try to compile
my project. I have tried adjusting the /Zm switch as suggested by the
help documents, but this is a project setting and not a VS.NET setting
so that requires write access to the project file. This is an
unacceptable solution... more >>
FlashWindowEx does not work with Windows Classic theme
Posted by Guff at 5/26/2004 6:26:09 AM
I have an MFC application that uses FlashWindowEx to notify the user of an event by minimizing a window on the taskbar and calling FlashWindowEx. This works fine except if you are using the Windows Classic theme on Windows XP. If you switch back to one of the built-in XP themes, it works fine. Wh... more >>
Mixed-mode DLL crashes when calling managed code
Posted by Jesse McGrew at 5/26/2004 12:13:32 AM
Hi all,
I'm trying to make a plugin DLL for a third-party application, using
VC++ .NET 2003. This DLL acts as a bridge between the C++ plugin API of
the application, and my actual plugin code written in C#.
When the app calls my unmanaged functions, they work fine. But as soon
as my unma... more >>
Main Form, Modeless Form, Forward Declaration Problem?
Posted by Legendary Pansy at 5/25/2004 4:16:04 PM
Hello, I'm trying to accomplish the impossible by trying to do something equivalent of this example found here
http://www.c-sharpcorner.com/Code/2003/Dec/DialogTutorial.as
Starting with "Listing 2 - Changing the constructor of the modeless dialog to accept the parent object:" line and go onwards ... more >>
Declaring and using __gc pointers to native structs [MEC++ - VC 7.1]
Posted by Bern McCarty at 5/25/2004 3:28:53 PM
I am using MEC++ in VC 7.1. I had a method on a __gc object that looked
like this:
__property System::UInt32 get_MyProperty(void)
{
System::Byte __pin * pinBytes = &m_byteArray[0]; // entire array is
now pinned
NativeStruct const __nogc* nativeStructP = reinterpret_cast<Nati... more >>
how can I acess XML file in Managed C++ application
Posted by allen chang at 5/25/2004 10:28:13 AM
I wanna write an application using xml technology with MS.NET2003
VC++.NET,but I don't know how to add xml functionality to my application, So
anybody can offer same artical or snipped codes?
Thank for your the advanced.
Best regards.
Allen Zhang
... more >>
Automatic Comments
Posted by saravanan.raju NO[at]SPAM earthlink.net at 5/25/2004 9:16:54 AM
What do I need to do to include comments in my source code like the
following automatically whenever new source files are created?
/* Title : Hello World *
* Created: Jan 01, 2002 *
* Modified: May 03, 2002 *
Description: Test program *
*/
Regards,
Saravanan... more >>
Mixing Mananged and Unmanaged in an Unmanaged class
Posted by Jon at 5/24/2004 3:49:23 PM
Whether I can compile a class or not, depends on the order of functions in my class.
My question is (see example below):
1) Is it a bug that the class 'WillCompile' will compile and execute, or
2) or is it a bug that the class 'WillNotCompile' will not compile?.
#include "stdafx.h"
#in... more >>
Strange error returned by 'PostThreadMessage'...
Posted by Nadav at 5/24/2004 3:31:05 PM
Hi
I have encountered a strange problem: while using PostThreadMessage to communicate between threads of different processes, PostThreadMessage returns "The message can be used only with synchronous operations" (1159), I didn't find any documentation discussing this error in details, does anyone h... more >>
gcroot and weak references
Posted by Steve McLellan at 5/24/2004 2:03:53 PM
Hi,
I see that GCHandle can encapsulate a weak reference, but gcroot appears to
only allow 'normal' GCHandles. Is this correct or is there something I've
missed?
Ta,
Steve
... more >>
SDI project - Problem with pointer in Release Mode.
Posted by Jerry at 5/24/2004 5:56:01 AM
I have an SDI document that runs fine in Debug Mode but crashes in Release Mode. I have set up my project so I can debug in Release Mode. The project has a tab view
Here is what is happening
OnInitDialog calls this
// parent is Tab Control, grandparent is Tab Vie
m_pTabViewWnd = (CTabVw *)Get... more >>
ActiveX control with VC 7
Posted by MD Websunlimited at 5/24/2004 5:47:12 AM
I'm having a problem utilizing a control that was created in VB 6 sp6 in =
VC 7 (unmanged). The VC7 is a dialog based application that uses the =
control. The control work perfectly in a VB test form but I can not get =
it to work in VC7. Whenever a property is accessed a memory access =
excepti... more >>
compilation or debug 16-bit Application using VC++ 6.0
Posted by vaishnavnitin at 5/24/2004 3:16:05 AM
Hello Al
I am re-designing 16-bit application of other party. but currently i don't have VC++ 1.52
I want to compile or debug the original 16-bit application
Thank you.... more >>
Execution of batch file from VC++(IDE)
Posted by KRK at 5/24/2004 2:16:03 AM
I am having one batch file and using this I can start my Server. It will execute all exes while starting. Now my question is how to debug my exe using this batch file?? Is it possible to execute this batch file from my prject debug session....... more >>
Weird debug behaviour
Posted by Val at 5/24/2004 1:39:31 AM
In vc7 (studio 2002), when I try to debug the first "if" statement, the IDE jumps to the next valid line and evaluates it even
if the if-statement is false. What is going on?
if( (theDealer.m_nPoints == 15) && (theDealer.Hand.size() == 2) ) //Break Point set here but...
{
vector<Card>::iterato... more >>
How to debug a dll in a remote machine?
Posted by lawrencelee at 5/24/2004 1:26:08 AM
Hi, al
I want to debug a dll which will run in a remote machine. I set up the remote debuging setting properly. And set the "Remote Command" as the program name which will load the dll. Then I "start" the program. But vc always popup a window to let me input the executable file name. I can't execu... more >>
|