all groups > visual c > august 2003
Filter by week: 1 2 3 4 5
Very bad managed C++ performance
Posted by Omid Hodjati at 8/31/2003 2:47:17 AM
Hi All,
I implemented an encryption algorithm using C#, native C++
and managed C++. Then I measured the CPU time used for
executing this algorithm in all implementation. The
managed version of C++ was the worst ! It is 20 times
slower that the native version and 6 times slower that the
C#... more >>
.NET Framework question
Posted by Bruno van Dooren at 8/29/2003 9:21:31 PM
This is not really C++ specific, but does anyone of you know where one could
get a large chart of the most important .NET frame work classes?
kind regards,
Bruno.
... more >>
.NET vs. Old Tech
Posted by News VS.NET ( MS ILM ) at 8/29/2003 1:43:39 PM
What is the equivalence of ActiveX, COM, COM+ and DCOM in .NET
I know there is no 100% equivalence
Thank you.... more >>
BUG: CFrameWnd::OnDDEExecute MFC 7.1
Posted by Marc Gustafson at 8/29/2003 1:23:23 PM
This function is executed when a application file is
double-clicked to open in a VC++ application.
Specifically, this function is enabled by
RegisterShellFileTypes () in the application's
InitInstance.
However, under MFC 7.1 for VC++ .NET 2003,
CFrameWnd::OnDDEExecute has a bug that re... more >>
Debugger bug: const __int64's are truncated to lower 32 bits
Posted by Andrew Burlak at 8/29/2003 12:50:12 PM
When I add 'foo' to Watch, it has the value
0x000000009abcdef0
although the program output is correct.
Configuration: Debug, Win32 Console.
-----
#include <stdio.h>
__int64 const foo = 0x123456789ABCDEF0I64;
void main()
{
printf ("foo = 0x%I64x\n", foo);
}
... more >>
O/R Mapping tool like Apple has.....for .NET?!?!
Posted by gicio NO[at]SPAM web.de at 8/29/2003 11:55:38 AM
Hi!
I post this text 1 year ago. But no one really could give
me an answer. This is the text that I posted long time ago:
I have a fundamental question about
The way .NET handles the object orientated way of
Persistence. I am coming from JAVA and WebObjects (Apple)
World and I am looking... more >>
Best Book for C++ web services and web applications
Posted by baker_tony NO[at]SPAM hotmail.com at 8/29/2003 8:29:57 AM
Hi, I want to write a web application with C++ as the code behind it.
I want to use existing code, which uses CString, but it would be great
if I could use ATL to take care of that.
I am having difficulty, looks to me like it is much more difficult
(technical) to use C++ rather than C#.
I a... more >>
C# overloaded operators not working from Managed C++
Posted by dbwnick NO[at]SPAM yahoo.co.uk at 8/29/2003 8:01:39 AM
I have some classes written in C# that work fine from Managed C++ and
Visual Basic .NET in all areas except for operator overloading (+, -,
*). I fully understand that I need to offer a secondary method for
Visual Basic to use as it does not support operator overloading.
However I would expect ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
System::String to LPCSTR?
Posted by George Ter-Saakov at 8/28/2003 3:35:46 PM
How do i call from managed C++ function wich accepts LPCSTR?
void AddName( System::String *sName )
{
AddName( (LPCSTR) sName )); -- does not compile.
}
George.
... more >>
Templating
Posted by JL at 8/28/2003 2:25:45 PM
When trying to template a class where the class
declaration is in a header file and the class
specification is in the source file, I receive linking
errors (Unresolved External Symbols... as if I have not
defined the methods). When I put everything in one file,
it all works beautifully...... more >>
Text Editor Q : Table.ColumnSelect from VC6 in .NET
Posted by Michael G. Scott at 8/28/2003 12:07:45 PM
In VC6, I used Ctrl+Shift+F8 (Table.ColumnSelect) all the time, to
select the characters in the same column locations in multiple rows all
the time. This doesn't work in .NET, and I haven't found the
replacement. Anyone know what that is?
As an example, lets say I have the following lines... more >>
Migration to C++ 7.0
Posted by Markus Strauss at 8/28/2003 11:32:53 AM
First i need to tell you i am no C-Programer - i can only make some litle C
changes to the code to meet our needs.
Now i have the folowing problem. Our programm reads a SQL-String from the
resources and gives this to the oledbCommand. This is the macro which worked
fine with C++6.0:
#define... more >>
Target 1.0 framework
Posted by Chad Silva at 8/28/2003 10:33:02 AM
Can I target the 1.0 framework from VC++ 2003? (been
looking through help and on the newsgroups but can't find
out how to do it in VC)
Thanks
Chad... more >>
Sink managed (DataTable) event from unmanaged class?
Posted by Bob Whiton at 8/28/2003 10:03:41 AM
I have an unmanaged class which has a member variable:
gcroot<DataTable*> myDataTable;
I would like to sink the RowDeleting event in my UNmanaged class. However,
I can't declare an event handler in the unmanaged class because the types
are managed (compiler error C3265).
For example, I... more >>
Migration to VC7: CString problem
Posted by Ram Baruch at 8/28/2003 3:49:00 AM
Hi,
In my company we're trying to migrate our application
from vc6 to vc7.
in one of our dlls we define the following class:
class __declspec (dllexport) CExString : public CString
{
....
}
and everything is ok until one of our functions, for
example:
void ExportCExStringFunc(... more >>
LNK2020 unresolved token error
Posted by baker_tony NO[at]SPAM hotmail.com at 8/28/2003 2:13:49 AM
Hi, If I
1) create a brand new Visual C++ Project -> Class Library (.Net)
2) in the stdafx.h file add #include <atlbase.h>
I get the following errors:
------ Build started: Project: testATL, Configuration: Debug Win32
------
Compiling...
Stdafx.cpp
Compiling...
AssemblyInfo.cpp
testAT... more >>
Visual C++ .NET compatability with Visual C++
Posted by Tristan Sehgal at 8/28/2003 2:08:46 AM
I am completley new to the .NET framework but have
a good understanding of Visual C++.
I am starting to develop a new class libary which other
programmers can use in their applications. To do this in
Visual C++, I'll be creating a DLL with exported classes.
I would like to develop this c... more >>
newbie question
Posted by k_meier NO[at]SPAM engineer.com at 8/28/2003 1:49:03 AM
Hi All
In order to learn C++, I want write a programm which plays back a wav
file.
I know some C and DSP programming. Could you give me a hint where to
begin, possibly a sample programm.
thanx... more >>
Intellisense not picking up these structs
Posted by Adam Clauss at 8/27/2003 6:30:18 PM
I have a few variables that I want declared as global. To accomplish this,
I made the files globals.h and globals.cpp.
In globals.h I have the declarations for the structs, and one variable
actually defined. It is defined w/ the extern keyword. Then, in
globals.cpp I actually define that ex... more >>
OnDraw again
Posted by rufus at 8/27/2003 4:59:07 PM
This is wierd. I have a single doc app. I create some buttons in the view
OnDraw method.
When I size my app window - the buttons disappear. But as soon as I click on
any spot inside the window or the window frame they appear.
What is going on here. I have tried everything. I have used WM_SIZ... more >>
operator = defined using template?
Posted by Ondrej Spanel at 8/27/2003 4:23:27 PM
I defined operator = using template member function for a template class.
However compiler failed to recognize it is defined and created its own
version (which was member-wise copy, and a result was disastrous and hard to
debug bug, as pointer was copied).
Adding explicit operator = helped. Se... more >>
Custom controls
Posted by Rob T at 8/27/2003 7:34:24 AM
Where are some good places to look for custom controls? I only know of code
project, which has been very good.
Rob
... more >>
problem with bool in unmanaged/managed interop
Posted by Ian at 8/26/2003 11:45:02 PM
When I have an unmanaged class (compiled without /clr or
with #pragma unmanaged) with return type virtual bool,
the return value always comes out true when called in
managed code. Only happens with virtual and bool. Sample
code below.
Is anyone aware of a fix, workaround, etc?
Sample C... more >>
VC6 COM Server EXE upgrade to VC7.1 - "Server Execution Failed" error coming from CoCreateInstance
Posted by Bill Davidson at 8/26/2003 9:20:35 PM
All:
I recently upgraded a VC++6 COM Server Exe project to VC++7.1 (w/ the latest
PSDK).
After a couple of minor hurdles, I got the project to compile and
self-register. Unfortunately, when I tried to call into the server from
either a VB6 or a VC6 test client, an error occurs at object cr... more >>
Window Position
Posted by insomniac at 8/26/2003 5:24:34 PM
Does anyone have a code snippet that retrieves a windows
coordinates within the desktop? I can't seem to get
GetWindowPlacement() to work. And GetWindowRect returns
0,0 for the top,left corner, not the current position on
the screen.
Thanks.
... more >>
how to keep console window open
Posted by Bumbrlik at 8/26/2003 6:32:04 AM
When I spawn a console application from a another
application of mine using
_spawnl(_P_NOWAIT, my_program, ......),
it opens a new console window but when it is finished the
window is automatically closed.
Is there any way I can keep the window open even after the
program terminated (I w... more >>
unicode vs. ansi strings in WriteFile
Posted by Paul at 8/25/2003 4:30:00 PM
Hi,
I am extending an existing MFC app to use Unicode (for a
Japanese version of the interface elements). The app's
purpose is to control a peripheral device through the
serial port, and the device only understands ansi strings
(in fact, I synthesize a character stream and send it as
th... more >>
Calling a "Mixed mode" dll from c#
Posted by ron jacobs at 8/25/2003 1:44:15 PM
I have just implemented a "mixed mode" dll in VC++. I
have implemented this dll in accordence with several
articles found on the MSDN website including KB 814472.
The crux of the problem is that when the dll is built
with the \noentry linker option, I can not load the dll
in a c# client.... more >>
Any easy way to find functions that are not called
Posted by franklopez2000 NO[at]SPAM yahoo.com at 8/25/2003 1:26:04 PM
Question: Is there any way to use the Visual Studio .NET environment
to easily identify C and C++ functions that are not called?
If not, does anyone have any recommendations on some other software
that I can quickly get my hands on to do this?
Right now, I only need to do it once.... more >>
Compiler Error C4277 in VS.NET 2003...
Posted by Dave Reed at 8/25/2003 10:13:57 AM
I'm getting this error:
Script View.cpp(40) : warning C4277: imported
item 'Homegazer::CoreLibrary::ScriptTable::_Deleted'
exists as both data member and function member; data
member ignored
ScriptTable is a C# class with a constructor and some
static members and "Script View.cpp" is... more >>
LNK 2019 with std::basic_ostream since switch form 2002 to 2003
Posted by Peter Meier at 8/25/2003 4:55:58 AM
Hello,
linking external libraries, which linked perfectly under
net 2002 bring up lots of unresolved external symbols for
standard iostream calls: any idea what could cause that or
how to fix that problem?
Greeting Peter
error LNK2019: unresolved external symbol "__declspec
(dlli... more >>
Could I have some help wiht the DataLink: Brandon Bray
Posted by Burton Wilkins at 8/24/2003 9:15:30 PM
Dear Brandon:
You sent me some advice before as to how get the DataLink working, but I =
haven't been able to get your solution to compile:
You sent me this:
>Hi Burton, I was able to get the following code to compile:
> #using <mscorlib.dll>
> #using <adodb.dll>
> #using <MSDASC.dll>... more >>
create worker thread in managed c++
Posted by Daylor at 8/24/2003 7:19:05 PM
hi.
i have class foo.
and 2 methods.
X-method.
Y-method.
i want inside X method , to start worker thread (managed) of Y method.
can i do it ,and how ?
have a nice day.
... more >>
mixed-mode DLL: register corruption occurs when managed C++ calls unmanaged C++
Posted by Adam McKee at 8/24/2003 6:12:33 PM
We are using Visual Studio.NET 2003 in our project with .NET framework
1.1. One of our libraries is a mixed-mode dll assembly consisting of
one managed C++ library, and several unmanaged C++ libraries. We are
using managed C++ as a bridge between managed .NET code and unmanaged
C++ code, which... more >>
MapViewOfFile...
Posted by Emmanuel Derriey at 8/24/2003 11:18:52 AM
Hi !
I have a problem with the MapViewOfFile API.
I use this API to store data in files in my own database system management ;
when I need to store new data, is the file is NOT large enought, I close the
file, reopen and grow it (CreateFileMapping) and re-call MapViewOfFile (last
argument is 0,... more >>
migrating COM from vc6 to vc++.net
Posted by Mohammad Bin Shahbaz at 8/24/2003 5:58:52 AM
If there is a COM component developed in vc6, can it be
recompiled into vc++.net.... more >>
Monitoring Internet usage
Posted by Pawan at 8/23/2003 1:29:13 PM
Hi,
Currently I am have an assignment which has to have some functionality
which enables internet usage of client computers from a server machine.
Basically this is an upgradation that I have to write to an existing
software for chain of Internet Cafes. Any pointer or resource where I can
f... more >>
managed vs unmanaged C++
Posted by Bob Cummings at 8/23/2003 9:55:34 AM
Greetings everyone,
Background:
I am working on a project as an intern. When I went to my professor for some guidance, he suggested
the design of the program was just about perfect for the new dotNET architecture. I looked at the
frame work for dotNET and it does seem like it might be a... more >>
Dynamic and complex query(C#+sql server2000)
Posted by Joe at 8/23/2003 1:03:26 AM
Dear Friends,
How do write the below dynamic update Query? I am new to this SQL Query.Its
very very urgent requirements.
If anyone knows please help me the below SQL query.
I would appreciate any help.
UpdateEmployee()
FieldName datatYpe
EmpName - string
EmpNo - int
Sex ... more >>
Can Managed C++ Use MFC Lib
Posted by apex at 8/22/2003 12:17:04 PM
Hi All:
Can Windows Forms Application (.net) Use MFC class and Windows SDK API ?
If can ,how to do ?
Thanks in advance .
... more >>
The designer could not be shown for this file
Posted by Manmohan Gupta at 8/22/2003 11:48:44 AM
VS.Net 2003
Win2k Terminal Server SP4
When a create a new ASP.Net web service and try to open
the web service code behind class in the designer by
double clicking in Solution Explorer, I get this task item:
The designer could not be shown for this file because none
of the classes with... more >>
"MessageBoxA" error
Posted by Charlie NO[at]SPAM CBFC at 8/22/2003 11:20:16 AM
Hi:
Using messagebox class, I'm getting error saying "MessageBoxA is not a class
or namespace". I'm simply calling MessageBox class in a button event this
so:
private: System::Void button1_Click(System::Object * sender,
System::EventArgs * e)
{
getExistingRace* per = new getExistingRac... more >>
TAPI (make A call)
Posted by ahmed fat-hi at 8/22/2003 10:00:17 AM
hi every body
to make a call using TAPI
i do the following:
1- initiate connectiion
2- Select an Address
3- make a call
when i make a call i execute the function
ITAddress::CreateCall the first parameter it takes is the
distination address (BSTR bstrAddressToCall)
bstrAddressToCall wi... more >>
Converting IntPtr to HWND
Posted by Alison Kakoschke at 8/22/2003 5:18:19 AM
I need to convert an IntPtr (as returned from the Form,
get_Handle() method) to an HWND but can't find any
information as to how it is done. I've tried everything
I can think of and always seem to get an undefined value
for the pHandle.
HWND pHandle = (HWND)(void*)dataFormChild->get_Ha... more >>
Standards
Posted by Umpa Lumpa at 8/21/2003 6:20:57 PM
Hi,
What is the status on the "standardization" (outside MS) of the BCLs?
Is everything under the System namespace going to be "standard" and
everything under the Microsoft namespace custom per MS specific and in
general Vendor.* namespaces for vendor specific classes.
Is WinForms ... more >>
How do you set startup form in WinForms C++
Posted by Charlie NO[at]SPAM CBFC at 8/21/2003 1:40:11 PM
Docs say it's under General on Project props. I can't find it.
Thanks,
Charlie
... more >>
Native C++ Client To Call Managed C++ Web Service
Posted by Tim Rogers at 8/21/2003 12:25:04 PM
We've currently got a C++ client/server app that uses DCOM in order to make
remote calls. We want to replace DCOM with a .NET Web Service. The server
piece seems clear to me. I can write it using MC++ and then can call my
native C++ server code from within the Web Service. What I am unsure ab... more >>
Problem finding atl source while debugging
Posted by Jim Delany at 8/21/2003 9:08:44 AM
I have a project which when built and debugs looks for the source to atl
here
f:\vs70builds\3077\vc\mfcatl\ship\atlmfc\include\atlcomcli.h
Has anyone seen this problem and hopefully know how to fix it so I don't
have to step through assembly language each time I call some function which
has a... more >>
question regarding SetWindowsHooksEx
Posted by priyanka at 8/20/2003 10:54:05 PM
when I set a shell hook in WIN98 I don't get an entry of
any application in taskbar during my program execution.
same code runs without any problem in win 2000.
Also there is a problem with ReadDirectoryChangesW API in
win2000. It is not recognising a api & gives UNDECLARE
IDENTIFIRE error... more >>
the correct way to register an object
Posted by Serve La at 8/20/2003 10:33:22 PM
Suppose I wanted to fill in DllRegisterServer myself for an IDispatch
component.
Where do I put the progid? I'm now putting it in HKCR\CLSID\{-guid-}\ProgID
but whenever I want to get the CLSID I get the "invalid class string" error.
The typelibrary is registered and the interface is registered,... more >>
|