all groups > visual c > february 2004
Filter by week: 1 2 3 4
can i compile and run .cpp file in .net environment as in VC++
Posted by Mon at 2/29/2004 4:21:06 PM
I am confused and dont know how to use .net environment to work with C++. but i am just not sure whether it's possible or not. Can anyone tell me, pls?... more >>
HttpWebRequest
Posted by user NO[at]SPAM domain.invalid at 2/29/2004 4:16:25 PM
Hello
I have function:
HttpWebRequest HttpWReq =
(HttpWebRequest)WebRequest.Create("http://myserver.org/index.php");
HttpWReq.KeepAlive = false;
HttpWebResponse HttpWResp = (HttpWebResponse)HttpWReq.GetResponse();
Stream receiveStream = HttpWResp.GetResponseStream();
Encoding encode = Sy... more >>
HELP!!! - Files Linking
Posted by ya man at 2/28/2004 6:56:05 PM
I have two files x.h and y.h which define 'class X' and 'class Y'
X has data member of type Y => there is - #include "y.h" in the file x.
Y has data member of type X => there is - #include "x.h" in the file y.
why the compiler doesn't let me do it ??????????!!!!!!!!!
what am ... more >>
Problem with custom draw flickering in MFC
Posted by Arnold the Aardvark at 2/28/2004 6:07:39 PM
[New to MFC]
I am creating a custom draw tree view based on CTreeCtrl.
When the control is re-sized the background is blanked
completely, resulting in a horrible flicker.
I've seen various suggestions involving the use of double
buffering. Those are fine but I want to understand what is
w... more >>
CPropertySheet problem
Posted by Stephen at 2/28/2004 10:56:48 AM
Hi,
I have created a NON-MODULE CPropertySheet in a form. And I have added
several CPropertyPage to the sheet.
There's a runtime error where I call SetWindowText of CProertyPage which is
not the first one. I was told that the page is not a window (hWnd = NULL).
Only the first page can use S... more >>
Excel .xll
Posted by Dave at 2/28/2004 5:31:05 AM
I want to use Visual C++ to build Excel an .xll. I need this because the functions I am using need to do many calculations and the speed is needed. What version of Visual C++ do I need? Is there any templates to get started with in any of the versions
Thanks in advance for any help getting star... more >>
Compiling in VS gives strange results
Posted by Joe Piscapo at 2/27/2004 8:26:46 PM
Hello,
When I compile my program in Visual Studio it does not work for every input,
some numbers make it crash. But compiling in gcc works for those numbers
that made it crash in Visual Studio. Someone told me to check if Visual
Studio is using the gcc libraries. How do I do that? I found an... more >>
Destination folder for MSVC 2003
Posted by Nick at 2/27/2004 7:41:53 PM
I am trying to install MS Visual Studio .NET 2003 Enterprise Architect from
a MSDN DVD. The problem is that I cannot change the destination folder. The
"Local Path" dropdown list and text box are disabled. When I select ".NET
Framework SDK", the "..." button appears allowing to change the path fo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
__event handler test: if (OnEventHandler) OnEventHandler(Myfunc);
Posted by Olaf.Baeyens NO[at]SPAM skyscan.be at 2/27/2004 1:12:05 PM
I want to hook events handlers but need to test of any event handler is
assigned or not.
I need something like this:
__event void OnEventHandler(Myfunc)
....
if (OnEventHandler) OnEventHandler(Myfunc);
else DoMyFunction(Myfunc);
....
This "if (OnEventHandler)" does not get accepted by ... more >>
How to write a plug in to MS Outlook Express and MSN Messenger
Posted by siedem at 2/27/2004 11:46:56 AM
Hi
I have to write a plugin to MS Outlook Express and MSN Messenger. Does
anybody have any examples or documentation related with this topic?
thanks in advance
P.
... more >>
__property strangeness behavious
Posted by <.> at 2/27/2004 10:20:12 AM
Hi,
If I make a __gc type with __property set and get I set them to private:,
those 2 methods are private ok but the actual generated property is public
according to the object browser yet its not visible in C#. WTF?
What kind of tosh is this ?
... more >>
VC7.1 STL Performance Problem
Posted by BCC at 2/27/2004 12:16:15 AM
I am noticing what seems to be a huge drop in performance in STL from VC6.0
to VC7.1. Particularly
with vector.
The following code shows what I mean...
Any thoughts?
Thanks,
B
//Test the speed of operations on primitive arrays and vectors
#pragma warning(disable: 4786)
#include <... more >>
fatal error LNK1179
Posted by Hendrik Schober at 2/26/2004 6:32:01 PM
Hi,
I am getting
LNK1179: invalid or corrupt file: duplicate COMDAT '<mangled name'
The file compiles fine. What can I do?
Schobi
--
SpamTrap@gmx.de is never read
I'm Schobi at suespammers dot org
"Sometimes compilers are so much more reasonable than people."
Scott Meyers
... more >>
compiling a c program
Posted by cjastacio at 2/26/2004 6:11:06 PM
Is it at all possible to compile a program written in c using the c++.net suite?... more >>
Useful tip
Posted by Lee Alexander at 2/26/2004 3:37:30 PM
Sometimes all I want to do is build a particular solution without firing up
vstudio in GUI mode and then wait whilst source control get its act together
etc. Anyway I've found a nifty solution to this by adding some extra file
associations. So here is how you do it:
First some assumptions:
~~... more >>
Can't find alink.dll
Posted by Anthony Hunter at 2/26/2004 2:14:09 PM
When I try to compile a program, I keep getting the following error:
MyProject fatal error C1108: unable to find DLL: 'alink.dll'. This dll is
installed and is in .Net Framework folder. I've tried adding the location to
the path and it didn't help.
Any ideas on how to correct this?
... more >>
Tree Item Problem. (Really don't know how to explain this) - mg code
Posted by Bob at 2/26/2004 1:06:06 PM
I am adding managed code to a project that I created under Visual 7.0 C++ because I want to utilize parts of the framework. The project runs fine when I am under Visual 7.0 and the Managed Code extensions are turned off. When I turn them off, one of my views terminates on the "UpdateData" call for... more >>
Mixed Managed/Unmanaged
Posted by Shawn B. at 2/26/2004 11:12:39 AM
Greetings,
I'm new to MC++ (but not C#) so bear with me. I have a question...
I have created a 6502/65c02/65816 CPU processor core for a simulator (in C#)
and now for a part of performance optimization, I'd like to consider
Manage/unmanaged C++. I am considering building a JIT backend fo... more >>
Null Reference Exception on strtok function - NEW POST
Posted by Paul Brun at 2/26/2004 10:40:59 AM
Hello all,
Well....I debugged in application further (see int32 to native int thread)
and decided to make a new
post as it is easier for trackability...
Anyway, I am getting a Null Reference Exception (as seen in my .NET Class
library) through the
strtok function in my C library. When I ra... more >>
[ANN] Firebird .NET Data Provider 1.5.1 released
Posted by Carlos_Guzmán_Álvarez at 2/26/2004 10:27:34 AM
Hello:
Firebird .NET Data Provider 1.5.1 available for download.
Note about the Firebird RDBMS ( http://www.firebirdsql.org/ )
"Firebird is a relational database offering many ANSI SQL-92 features
that runs on Linux, Windows, and a variety of Unix platforms. Firebird
offers excellent co... more >>
7.1 C++ compiler doesn't catch base class reference without public copy constructor
Posted by Andrew Schepler at 2/26/2004 10:26:08 AM
When compiled with Visual C++ .NET 2003 (only), the program below aborts as though no matching catch clause is present. If the copy constructor of A is made public, it successfully catches the exception instead. If I step into __CxxThrowException in debug/assembly mode, it looks like the pThrowInf... more >>
Convertion from vc6 to vc7
Posted by Baskar RajaSekharan at 2/26/2004 10:20:01 AM
Hi,
I am having one Tool, which will convert components from vc6 to
Vc7 through programaticllay. (ie converting from .dsw to .sln.)
While converting, the following MessageBox is comming ," The project Needs
to be Converted to the visual C++ 7.0project format? Do
you want to convert?
Y... more >>
Troubles with running c# application
Posted by stevencool007 NO[at]SPAM hotmail.com at 2/26/2004 4:32:23 AM
Hello,
This topic has been 'topic' for several times in this Newsgroup. I
have made an application which use a to c++ dll's (unmanaged), a
managed dll and a c# application. When I run the application on anther
machine I get a the following error:
----------------------------------------------... more >>
DLL Memory Leaks - What Do I Do?
Posted by Robert A Riedel at 2/25/2004 9:48:48 PM
I am having a difficult time solving a memory leak in a DLL. The problem
occurs because I cannot find a way to control the termination of threads
managed by the DLL.
In a thread procedure that is part of the DLL data segment there is an
allocation that occurs from the heap. This heap allocatio... more >>
VC7.1: Compiler Error if include any STL headers (iostream, fstream, string, etc.)
Posted by Minh at 2/25/2004 8:43:24 PM
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't
get any project with STL includes to compile even if I create a new empty
project (and added #include <string>). It gave me a bunch of "missing ;"
errors. I did reinstall the whole thing a few times but it didn't work.
A... more >>
VC = wrong language for windows forms?
Posted by Scott at 2/25/2004 8:35:59 PM
I've googled this a bit and suppose I know the answer, but I'd appreciate
any input:
I'd like to write windows forms apps in C++, but it seems almost as if that
is discouraged. As an example, practically all the books, etc. are written
for C# and VB. Even Petzold.
This begs the further qu... more >>
How to change caption of window, using AfxMessageBox()..
Posted by Jigar Mehta at 2/25/2004 3:32:48 PM
Hye,
I am Jigar Mehta, currently, I am using AfxMessageBox where I need to
change the caption of the messagebox using that function only... What I get
is,
the project name as the caption. I don't want to show my codename of the
project to people in my final product, so, I want to change the... more >>
int32 to native int
Posted by Paul Brun at 2/25/2004 1:28:36 PM
Can this be done? Is there a way to "de-alias" the int datatype so I can
pass an int into a C method??
Paul
... more >>
Further to child windows...
Posted by Bonj at 2/25/2004 8:46:07 AM
Further to my last post, I have managed to get a child window to display. But its messages are routed to the same WNDPROC that the main window's messages are routed to - what is the way of identifying from the lParam or wParam whether the message came from a child window or the parent? And what if t... more >>
LNK2001 error
Posted by jbmeeh at 2/24/2004 5:41:07 PM
I have an unmanaged MFC project that I am referencing from a managed MFC project. The unmanaged project builds successfully, but the build of the managed project fails during the link because it cannot find the external symbols from the unmanaged class. In what directory should the dll file be place... more >>
Template - Version - Edition problem - Microsoft Press
Posted by James Morton at 2/24/2004 2:17:07 PM
I am currently going through the C++ step by step microsoft press book. I
have VS.NET 2003 loaded. In the examples it asks me to choose "Managed C++
Application", "Generic C++ Class wizard" . I do not have these templates!!!
The book comes with standard edition visual c++. I think I am dealing wi... more >>
BinaryReader.ReadBytes issue
Posted by <.> at 2/24/2004 1:46:16 PM
Hi,
I am trying to optimize the reading of a huge binary file into a byte[]...
I am doing the following..
byte[] ba = new byte[br.BaseStream.Length];
ba = br.ReadBytes((int)br.BaseStream.Length);
The problem is., BinaryReader.ReadBytes(...) only takes an int wherase
Binar... more >>
NullReferenceException in calling C native method
Posted by Paul Brun at 2/24/2004 11:16:43 AM
Hi guys,
I get the following error during runtime:
Unhandled Exception: System.NullReferenceException: Object reference not =
set to an instance of an object.
at SXInit(Int32 )
The SXInit method is a native C function I am calling from Managed C++ =
and the method is expecting a number o... more >>
compiling on vc.net
Posted by Anurat Chapanond at 2/24/2004 10:36:21 AM
Hi All,
I am a beginner for VC++ .NET but I used VC++ 6.0 before. I wonder where
the "run program" button has gone. Do we need to run it on command line
everytime? Also when I try to run a program on command prompt I got the
"cannot open include file error". How can I set the path to those i... more >>
Serialization issue
Posted by <.> at 2/24/2004 10:02:29 AM
Hi,
I was trying to serialize a type that has a SortedList in it and I get the
following innerexception.
{"The type System.Collections.SortedList is not supported because it
implements IDictionary." }
Why can this not be serialized, this means I have to start packing my type
into a... more >>
Code compiled in VS 2002 but not VS 2003 - error C2668
Posted by Francisco Rivas at 2/23/2004 7:27:12 PM
Hello all,
I did a search through the archives and found that someone posted a message
about this same error, but never got a response.
I've got a small sample app that compiles and runs in VS 2002 but doesn't
compile in VS 2003. In VS 2003, I get error C2668. The error comes from
trying ... more >>
COM problem moving from 2000/XP to NT 4
Posted by Gary Hughes at 2/23/2004 3:36:05 PM
I have a COM dll written in C++ using VS.NET 2003. This dll is used by a VB 6 program. The dll fires notifications to the VB program which are handled using WithEvents. I pass COM interfaces as arguments to the various notification functions. This works fine on 2000 and XP however it fails on NT. On... more >>
Destructon of .NET objects
Posted by <.> at 2/23/2004 3:03:12 PM
Hi,
Why doesnt the runtime set the object to null when the finalizer has been
called? Wouldnt this prevent a slew of bugs?
I just called the obj.__dtor(); from a MC++ wrapper class I made and its
still referencing the type even tho its "destructed". Why do I have to set
it to null in m... more >>
command line output on .Net command line build
Posted by John Biddiscombe at 2/23/2004 2:49:03 PM
Hello,
I don't get any output until the build finishes using this command line...
"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe"
test.sln /build debug /project proj1
under older visual studio versions, it used to show each file as it was
being built.
Is there... more >>
Handling input from a serial port using Visual C++
Posted by Mike at 2/23/2004 10:41:10 AM
Sorry, don't know if this is the correct board for my question. I'm a novice so I guess I have a valid excuse
My question : I'm using Visual C++ and I need to collect data from a serial port. Specifically, I have a piece of equipment that outputs ASCII data to my computer through the serial port... more >>
TRAINING for printer driver development.
Posted by Jaime Boloix at 2/23/2004 10:36:56 AM
TRAINING for printer driver development.
I need to take a good 1-2 week course for making printer drivers using the
DDK (haven't done any driver before).
Can you recommend me where???
... more >>
Mixed mode assembly wrapper
Posted by <.> at 2/23/2004 10:21:08 AM
Hi,
I am making a wrapper class so I can call unmanaged classes from C#, I
have these structs that I want to pass and get back from the unmanaged
classes, do I...
1) Create a copy of these structs for the managed world like
public __value struct SomeStruct
{
System::UI... more >>
Tray icon's menu
Posted by Bonj at 2/23/2004 8:41:09 AM
Looking for a good example of how to show a popup menu in response to the user right-clicking on the icon in the 'taskbar notification area' (tray). I'm fine with creating the icon and responding to its messages. It's the showing of the popup menu I can't do
I've tried it using TrackPopupMenu funct... more >>
How to set file properties (not SetFileAttributes)
Posted by Thomas Baeumken at 2/23/2004 6:51:05 AM
HI
I'am developing under Win 2000 with MS Visual Studio 6
My question
What are the API functions for setting file properties?
I'am talking about the proberties you can set, when you
rightclick a file and put some additional data into
the "Fileinfo" dialog..
Thanks a lo
Thoma
... more >>
Invoke virtual method in unmanaged code
Posted by HS Liao at 2/22/2004 9:26:06 PM
We are develping a Web service with Visual Studio .NET C++.
It is necessary to invoke a virtual method in unmanaged code from managed code.
It works well in debug version, but the release version fail to call the method.
Thanks for any help!
... more >>
read the information continuously and display in VC++
Posted by nandha at 2/22/2004 9:16:06 PM
H
I have a doubt in VC++ regarding file reading and displaying in the GUI (Dialog
I have a binary file, which contains several piece of information , i have to read the information continuously from the file and continue to display the information in the GUI, i have created a GUI , using dialog ... more >>
Window class
Posted by Bonj at 2/22/2004 7:01:39 PM
i'm trying to create a class that will contain all the features of
instantiating a window and showing it. I've got the SetWindowLong /
GetWindowLong pair to succesfully store the 'this' pointer in the hWnd's
GWL_USERDATA, but the pointer that it's referring to always seems to point
to the base c... more >>
Message 36? WM_????
Posted by Bonj at 2/22/2004 4:11:59 PM
what is windows message 36? It seems to be getting fired to my wndproc even
before WM_CREATE.
... more >>
Breakpoints
Posted by Bonj at 2/22/2004 4:10:04 PM
It SAVES BREAKPOINTS!
What an absolute genius of a program
Imagine being able to debug a project, CLOSE THE SOLUTION FILE DOWN, and
then open it up again, and YOUR BREAKPOINTS WILL HAVE BEEN SAVED???!!! Why
didn't they think of that?
... more >>
help! (urgent)
Posted by newbie at 2/22/2004 4:01:05 PM
Hi
I am using a toolkit written in c++ that consists of three parts
1) video captur
2) image processin
3) OpenGL wrappe
The video capture program only works with local hardware (for example usb web cam). Since I have to use a remote live camera with a fixed IP-address, I then have to write m... more >>
|