all groups > visual c > march 2005 > threads for march 8 - 14, 2005
Filter by week: 1 2 3 4 5
Error switching mfc to mixed mode
Posted by Tim Hitchcock at 3/14/2005 9:53:36 PM
I have an existing MFC program consisting of an EXE and one DLL that I am
trying to convert into a mixed mode program. I am using Visual Studio.NET
2003 Professional and I am compiling in the IDE. I set the "Use Managed
Extensions" option to Yes in Configuration Properties General, added the... more >>
running an application in foreground?
Posted by one2001boy NO[at]SPAM yahoo.com at 3/14/2005 8:09:02 PM
Hello,
I have an executable file lanuched from another application.
is there a way to make thie executable file foreground if it is launched
from other application? Thanks.
... more >>
Array pointer and Array are the same?
Posted by Kenny at 3/14/2005 5:55:00 PM
Will is affect the result if I pass Array Pointer as a parameter to a
function compare to Array as a parameter?
For example,
BYTE buffer[1024]
a.) function(&buffer)
b.) function(buffer)
Is it any differences between (a) and (b)?
Thanks in advance.
Kenny
... more >>
Overriding WinHelp is not working in .NET
Posted by Devender Khari at 3/14/2005 4:30:18 PM
Hi Friends,
I have an application which was developed with Visual C++ 6.0 and MFC. In
the application, the CWinApp::WinHelp method was overridden to support
context sensitive help (F1 help). After upgrading to Visual Studio .Net
2003, the help links are not working any longer. The overridden W... more >>
VC++ & Web Service & DLL -- Also, reading "H" instead of "Hello Wo
Posted by RobertoPerez at 3/14/2005 10:39:07 AM
We have a default "Hello World" web services that we can call from VC++
creating an unmanaged DLL. The DLL is used in old languages that calls the
DLL-function and that is calling the web sevice.
Everything looks fine but we can read the letter "H" and not the entire
string. I'm sure that the... more >>
ostringstream(string) constructor
Posted by Bob Altman at 3/14/2005 8:27:27 AM
Hi all,
Why doesn't the following unmanaged C++ code work as expected:
string s;
ostringstream strm(s); // This stream should store results in s
strm << 25;
cout << s << endl; // s still contains an empty string
cout << strm.str(); // but the stream internally co... more >>
Linker error with templatized function
Posted by Bob Altman at 3/14/2005 7:36:20 AM
Hi all,
This is the first time I've tried to create a templatized function, and I
can't get past a linker error. I create a new, unmanaged C++ application
and added a class named MyClass. In MyClass.h I added:
template <class T> void MyFunc(T);
In MyClass.cpp I added:
templ... more >>
edit box
Posted by wayne at 3/14/2005 3:39:53 AM
how can i read a .csv file and output it into an edit box?
i also need to know how can i display more than one csv file
thank
-
wayn
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Plotting
Posted by Amal.jibar NO[at]SPAM gmail.com at 3/14/2005 3:12:38 AM
I develop application with C++.Net and i want to add module:PLOT where
i can enter and calculate data ,view the changing graphs. Plot will
enable to create plots fast and easily and options can be changed
interactively.
witch tools(or classes) in VS.net can I use?
thanks.... more >>
C++ class library release still require debug runtime dll
Posted by szemein NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/13/2005 7:37:17 PM
The release build class library can only work with msvcr71d.dll and
msvcp71d.dll exist. How to make this class library work on any
machine without using the debug dlls? What are the project settings
that i need to take note so that it will become a "real" release
build without depending on the d... more >>
Add Event Handler
Posted by Jacky Luk at 3/13/2005 7:07:47 PM
I want to include some code for the MouseDown Event. I would like to add
this for the formview or a picturebox, how come there are no messages for me
to choose from. Even I created a button, no messages are shown in the pick
dialog box....any help is appreicated
Thanks
jack
... more >>
Critical Sections & Threading
Posted by MPH Computers at 3/13/2005 3:46:12 PM
Hi I am looking for some help
on Threading and Critical Sections
I have a main thread that controls an event
the event handler creates a new thread for carrying out the work
because the work may not be completed before the event is triggered again
I am trying to add critical sections ro... more >>
TCP stream?
Posted by Bob Altman at 3/13/2005 2:27:26 PM
Is there a stream class that handles TCP/IP or UDP/IP, or a Socket class to
serve the same purpose, hiding somewhere in the unmanaged C++ standard
library?
- Bob
... more >>
Unmanaged C++ object lifetime
Posted by Bob Altman at 3/13/2005 11:45:42 AM
Hi all,
I have a basic question regarding holding references to objects in unmanaged
C++. Suppose my unmanaged C++ class has a method that accepts a reference
to an object as an argument, and stores the object reference in a stack
object, and another method that uses the stored objects in ... more >>
Line Segment ActiveX Control
Posted by Jacky Luk at 3/12/2005 5:10:49 PM
Does anyone know of a downloadable Line ActiveX control which allows me to
plot straight lines on a VC++.NET form?
Thanks
Jack
... more >>
Preloading Image in Picture Box
Posted by Jacky Luk at 3/12/2005 6:09:08 AM
I want to do the same as VB6 by setting Picture property to some bmp image,
How to do the same with VC++.NET. Image property is not allowed for
"C:\dxsdk\123.bmp"
Thanks
Jack
... more >>
win service and HKCU and SHGetFolderPath with CSIDL_APPDATA
Posted by Viviana Vc at 3/11/2005 7:02:00 PM
Hi all,
A Windows service (which obviously starts before any user logs in) is
failing to:
- read something from registry from a key under the HKCU
- try to find out the user path by doing the following call:
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, path)
if any of these... more >>
Scaling a Picture from a C++ DLL
Posted by nah at 3/11/2005 6:59:02 PM
Hello.
I have a Visual Basic 6 program that calls a C++ DLL that I am in the
process of writing. The DLL does some calculations and should draw some
points in a Picture form contained in the VB exe. How can I scale the
Picture form to a custom scale from the C++ DLL, so that the points a... more >>
Newbie question: new/delete
Posted by MechSoft at 3/11/2005 4:07:03 PM
I have a question regarding deleting a dynamically created objects.
Thread 1 of my application create a new object using "new", say
MyClass* p1 = new MyClass
And I pass the address pointer to thread 2, where pointer p2 stores the
address from p1, thread 1. My question is: can I successfull... more >>
Regular expressions question
Posted by Ioannis Vranos at 3/11/2005 9:40:25 AM
What is the difference among the following. Please correct me if I am
wrong (this is not a homework, I am just checking System::Regex these
days and have not figured out everything yet).
"a*": As far as I know it means nothing (=it matches even the empty
string ""), or a string consisting... more >>
Splash screen
Posted by wayne at 3/11/2005 5:44:50 AM
How to display a splash screen(with a sentence of word) just before
display of the main screen(MDI application) using visual c++??
thanks
--
wayne
------------------------------------------------------------------------
Posted via http://www.codecomments.com
-----------------------... more >>
Navigation dans les tables enfants d'un DataGrid
Posted by Amal.jibar NO[at]SPAM gmail.com at 3/11/2005 3:58:35 AM
Bonjour
Je veux pouvoir gontr ler la navigation dans les tables enfants dans
ma DataGrid, c'est dire je veux acceder aux donn es de la table
enfant pour des lignes sp cifiques et pas pour d'autres.Sachant que la
propri t (AllowNavigation = false) fait qu'on peut pas acceder
aucune donn... more >>
HOWTO: Call a Managed DLL from MFC C++ Code
Posted by Morefeldt at 3/11/2005 2:19:01 AM
Hi!
I have done exactly like stated in 'HOW TO: Call a Managed DLL from Native
C++ Code' from Knowledge Base, but in my MFC application I have implemented
the tmain section in it's own MFC class. All is looking good until a call to
interfaced Method is done, then I recieve a negative HRESUL... more >>
Edit Box question
Posted by Sam at 3/11/2005 1:51:49 AM
Hello,
Is there a way to have access to the text buffer of an Edit box from it
hwnd. I can use SetWindowText, but this function triggers the control to be
painted with the new text. I want to change the text in the underlying edit
box without displaying the new text.
Thanks for your he... more >>
RC compiler issue
Posted by sarabjeetd NO[at]SPAM hotmail.com at 3/11/2005 12:44:47 AM
Hi,
I am using RC.exe to compile a resource file. The source file contains
version info which is missing from the output file.
The file included in the resource file is shown below :
////////////////////////////////////////////////////////////////////////////
///
//
// FILE: ver.h
... more >>
"syntax error: identifier" instantiating another class within same namespace?
Posted by Stephen Corey at 3/10/2005 1:34:52 PM
I've got 2 classes in 2 seperate header files, but within the same
namespace. If I use a line like:
// This code is inside Class2's header file
Class1 *newitem = new Class1(param1, param2);
I get "syntax error: identifier" and "undeclared identifier". Since
they're in the same namespa... more >>
Visual Studio macros - how to close a file
Posted by Ian at 3/10/2005 1:18:47 PM
I posted this message in the languages.VB newsgroup yesterday and did not
receive a response. I am hoping it might receive one in this newsgroup.
I would like to implement a macro that makes rather extensive changes to the
names of variables/classes in a VC Net solution. Macros are written ... more >>
High Resolution Callback Timer (microseconds)
Posted by Michael Evans at 3/10/2005 1:08:12 PM
First, we rely on a stable update rate so that our physics and dynamics
calculations and integrations are based on a known interval and
therefore are true-to-life.
Second, the graphics positions in our image generators are updated by
this dynamics application, and we need to update them at t... more >>
consuming a web service called through a DLL
Posted by Roberto Perez via .NET 247 at 3/10/2005 8:17:42 AM
Hello all and thank you in advance.
We have several old applications in Cobol, Centura, etc that needs to be converted to .NET
In order to save time our plan is to create web services and call them creating DLLs using C++ to be used by the old applications.
We have the simple "HELLO WORLD" we... more >>
[VS2005] class variable members marked as initonly
Posted by marcosegurini NO[at]SPAM virgilio.it at 3/10/2005 8:06:45 AM
Hi,
The following C++ managed console application compile with no errors
or warning even if the readonly class members are not explicitly
initialized.
Is there any way to force the compiler to inform me that the readonly
class members are not explicitly initialized?
If I translate this p... more >>
Navigation dans les tables enfants d'un DataGrid
Posted by Amal.jibar NO[at]SPAM gmail.com at 3/10/2005 7:39:30 AM
Bonjour
Je veux pouvoir gontrôler la navigation dans les tables enfants dans
ma DataGrid, c'est à dire je veux acceder aux données de la table
enfant pour des lignes spécifiques et pas pour d'autres.Sachant que la
propriété (AllowNavigation = false) fait qu'on peut pas acceder à
aucune données ... more >>
VC++ 2005 Express Beta February 2005 CTP
Posted by Ioannis Vranos at 3/10/2005 7:25:04 AM
I downloaded and installed VC++ 2005 Express Beta February 2005 CTP. I
just created a Windows Forms application but in the Toolbox I see no UI
components.
Am I missing something? :-)... more >>
command line arguments
Posted by ioanamirela at 3/10/2005 5:07:03 AM
Most programming languages have the facility to access command line
parameters. Is this facility necesary? Why? Can it be improved?
--
ioanamirela
------------------------------------------------------------------------
Posted via http://www.codecomments.com
---------------------------... more >>
Fatal internal C1060: out of heap space error even with hotfix
Posted by Rune Jorgensen (DDS) at 3/10/2005 4:37:02 AM
I use the C++ compiler with Visual Studio .NET 2003. OS is XP SP2.
Our projects include many large 3rd party C++ include files.
I have installed the hotfix mentioned in MSDN KB article 837437.
It helped for a while, but now the problem as popped up again.
/Zm option does not help.
The funny t... more >>
c++ atlsoap fails on MS terraserver->getareafrompt method
Posted by netkev NO[at]SPAM gmail.com at 3/9/2005 7:27:39 PM
I added the microsoft terraserver wsdl(version 2) as a web reference to
my c++ application(vs.net 2k3). When I attempt to execute the
getAreaFromPT method, I get an 'unspecified error' HRRESULT. This
happens after it successfully sends the soap msg to the web service and
recieves a well-formed... more >>
Default Property from a .NET object
Posted by kevin_g_frey NO[at]SPAM hotmail.com at 3/9/2005 7:23:00 PM
Hello All,
I have an MC++ class named "Person" which encapsulates access to a
database entity and it contains a number of field properties eg. Code,
Name, Address, Suburb etc.
Each of the field properties is of type "Field", so we have eg.
__property Field* get_Code( );
__property Field*... more >>
Adding automation to existing MFC application
Posted by maol at 3/9/2005 6:33:48 PM
Hi
I added all required components :
1. IDL file
2. Reg file
3. Document file is modified for adding automation stuff.
4. Iniinstance has been modified.
Yet my executable does not have right typelib information. If I open typelib
and executable to view type lib info they are grossly differe... more >>
High Resolution Callback Timer (microseconds)
Posted by Michael Evans at 3/9/2005 3:44:00 PM
Anyone,
I'm looking for a way to setup a callback function in our VC++ .ne
2003 7.1 console application using a higher resolution timer. Th
multimedia timer is too low resolution at 1 millisecond. We nee
microsecond resolution to guarantee an exact update rate (60 or 70 H
for example.)
... more >>
Visual Studio .NET 2003 Hangs when clicking on a function
Posted by sam c at 3/9/2005 1:57:38 PM
I have some code that looks a bit like this (note: this isn't the
actual code, it's just here in an attempt to help me explain what
actions I'm doing):
void foo(int bar1)
{
}
void foo(float bar2)
{
foo(3);
}
If I move the cursor by mouse to the word "foo" on the line "foo(3)"
... more >>
macro - how to open/close application file
Posted by Ian at 3/9/2005 12:50:15 PM
I have just begun to to learn how to write macros in VC++. For learning
purposes, I would like to implement a macro that accesses all files in a
'test' project and makes a series of changes to these files. I am able to
identify each file in my project and then open the file. But I have yet... more >>
managed enumerated type and ++ operator
Posted by Daniel Wilson at 3/9/2005 11:09:26 AM
I have an enumerated type like this:
public __value enum MyType{
ABC = 1,
DEF = 2,
GHI = 3,
JKL = 4
};
Later I have a for loop like this:
for (ft = MyType::ABC; ft <= MyType::JKL; ft++){
//Do stuff
}
I then get a compile error C2676: binary '++': 'MyType' does ... more >>
Pausing Sound
Posted by LoAnn at 3/9/2005 10:53:03 AM
I use the function PlaySound(FileName, NULL, SND_FILENAME | SND_ASYNC |
SND_NODEFAULT) to play a .WAV sound file in my program. How do I pause it?
Is there such function as PauseSound in Visual C++?
Thank you,
... more >>
Unicode/non-unicode compilation in an international dll
Posted by EP at 3/9/2005 9:00:12 AM
I have a vc++ dll that needs to run on english, german, and japanese
machines (those are my testing machines but it needs to run globally).
I couldn't get the dll to load in all environments so I made a test MFC app.
If I compile the app with UNICODE, it will run on english and japanese but
... more >>
Are there any RPC developement example available?
Posted by cyshao at 3/8/2005 4:31:13 PM
Hi, all:
Are there any RPC developement example available?
Thanks
CYShao :-)
... more >>
How to load icon in clipboard!
Posted by Ahmad Jalil Qarshi at 3/8/2005 11:14:07 AM
hi!
i want to load an icon into the clipboard using win32 api. i have loaded the
BMP image using following function.
::SetClipboardData(CF_BITMAP, (HANDLE)hBmp);
but dont know how to load the icon.
Thanx.
Ahmad Jalil Qarshi
... more >>
Where do I put the code for managed classes in managed C++
Posted by TT (Tom Tempelaere) at 3/8/2005 9:09:04 AM
Hey everyone,
I noticed that unlike C#, managed C++ still uses headers and implementation
files. My question is, is there any consensus of where to put the
implementation of the managed class?
In my project, I put everything in the header file. I don't see the need to
put it in a seperat... more >>
Warning LNK4099: PDB 'libc.pdb' was not found with ...
Posted by TT (Tom Tempelaere) at 3/8/2005 6:35:04 AM
Hey everyone,
When I compile my managed C++ project I get the following linker error:
nochkclr.obj : warning LNK4099: PDB 'libc.pdb' was not found with
'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\nochkclr.obj' or
at 'C:\XXXXXXXX\Debug\libc.pdb'; linking object as if no debu... more >>
Why is there no foreach extension for managed C++?
Posted by TT (Tom Tempelaere) at 3/8/2005 6:23:04 AM
Hey everyone,
Why is there no foreach extension in managad C++? Will it be in a future
release of managed C++?
For instance, the keyword __foreach could be reserved to do that.
Thanks,
--
Tom Tempelaere.... more >>
How to cast from Object to managed reference type in C++.NET
Posted by TT (Tom Tempelaere) at 3/8/2005 6:15:09 AM
Hey everyone,
I know regular c++ has cast operators: dynamic_cast, static_cast, const_cast
and reinterpret_cast.
But, I'd like to know if I can use any of these to cast from System::Object
to a managed class. If not, what cast operator do I need?
Thanks,
--
Tom Tempelaere.... more >>
When to add __gc decorator
Posted by TT (Tom Tempelaere) at 3/8/2005 5:19:02 AM
Hey everyone,
If I am writing a .NET library using managed C++, when exactly do I have to
decorate a pointer with the __gc decorator?
Thanks,
--
Tom Tempelaere.... more >>
Internal visibility
Posted by TT (Tom Tempelaere) at 3/8/2005 5:03:02 AM
Hi everyone,
How do I set the visibility of a member in managed c++ to internal (I'm used
to using it in C#, but can't find in C++.NET)
Thanks,
--
Tom Tempelaere.... more >>
To The Microsoft VS2005 Development Team : And Microsoft in General
Posted by Russell Mangel at 3/8/2005 2:48:48 AM
Thanks for making such an awesome programming environment, it's truly
amazing.
I really like C#, but C++ .net is so powerful, (The Interop capabilities are
mind boggling.)
Here are the things that I personally like the most: (The improvements in
VS2005 framework).
1. The new System.Direc... more >>
generate native 64 bit Itanium code
Posted by onion at 3/8/2005 2:29:02 AM
who knows that software serves in order to compile a projetcs c++ (VC7) for
ITANIUM with Windows Serveur 2003.
... more >>
|