all groups > visual c > october 2004
Filter by week: 1 2 3 4 5
Porting MFC app from VC6 to 2003
Posted by Ommund at 10/31/2004 2:15:00 PM
Hi
I have an MFC application originally developed in VC++ 6.0. The port to VC++
2003 went fine except for a few message handlers:
In the .h file
afx_msg void OnPingFailed( WPARAM wParam, LPARAM lParam);
In the .cpp file
..cpp fil (event map)
ON_THREAD_MESSAGE(ID_AXIS_PING_FA... more >>
rotate control
Posted by Chris at 10/31/2004 11:12:54 AM
Hi,
Is it possible to rotate a control on a form ? (e.g. Button, customcontrol)
thnx
Christian
... more >>
debugging
Posted by Bonj at 10/31/2004 10:35:31 AM
is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed
DLL? (without using VS IDE)
i.e., to sort of make windbg "take over" when it gets to the unmanaged
part...
?
... more >>
templates, C++, and LNK2019
Posted by Chris Burrger via .NET 247 at 10/31/2004 3:54:57 AM
I've found some other posts that deal with this linker error, but none of those solutions work for me. I just got VS.NET 2003 and I wanted to try it our with some basic algorithms. I am trying to make a singly linked list, using templates.
I?ll post my code and then the error message at the end.
... more >>
error LNK2019: unresolved external symbol "unsigned char __stdcall
Posted by naveena pagudala via .NET 247 at 10/31/2004 3:54:31 AM
(Type your message here)
--------------------------------
From: naveena pagudala
I am trying to implement some code in power managment capabailites in xp using visual studio. net
The program uses powerprof.h and powerprof.lib.
When i build the program i am getting this error?
The include a... more >>
benign redefinition of type
Posted by Bonj at 10/31/2004 1:15:19 AM
Hello
I am trying to compile a dll with the below code used to search through an
array of node structures.
I am getting the following warning unfortunately:
//wordsmain.c
#include <windows.h>
#include "resource.h"
typedef struct tagNODE
{
long StartCharNo,
EndCharNo,
NumChar... more >>
Compilation Error :placement arguments not allowed?
Posted by Raed Sawalha at 10/30/2004 8:45:11 PM
i have the following scenario
I've created MFC Application using Visual Studio 2003, then change the
project settings
to use Managed Extensions as follows:
1. Configuration Properties->General->use Managed Extension : Yes
2. C/C++->General->Debug Information Format : Program Database (/Zi)
... more >>
Changing default namespace in assembly
Posted by Edward Diener at 10/29/2004 7:16:56 PM
In the explanation to the ToolboxBitmapAttribute it is mentioned that new
bitmaps added to an assembly by Visual Studio .NET get the name of the
default namespace prepened to the name of the bitmap, and that the default
namespace is the assembly name. It then mentions that one can change the
def... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Help! VC++ .NET and the CRT
Posted by dlgproc at 10/29/2004 4:10:11 PM
Hi
I’m trying to write a C++ class library in Visual Studio 7.1 .NET using
managed extensions that calls code in an unmanaged static library. Functions
in the static library have parameters that require the good ol’ char*. Since
string parameters to my managed class methods are .NET Str... more >>
Converting textbox->text to integer
Posted by Dave at 10/29/2004 2:53:34 PM
Could someone tell me how I go about converting textbox->text to and integer
value?
Thanks
Dave
... more >>
exporting CStrings from DLL's
Posted by JackHWarner at 10/29/2004 7:38:02 AM
I'm porting an app from vc++6 to vc++ 7.1, and am having some trouble
exporting functions. I can export simple functions from a DLL by simply
putting __declspec(dllexport) in front of them, and I can then use them just
fine in my app. When I try to export a function with a CString argument,
... more >>
Extended stored procedure
Posted by Bonj at 10/29/2004 7:34:05 AM
Hello
I am having an issue that I've been having for months, whereby I can't get
*ANY* extended stored procedure to run on the PC other than the one I
developed it on.
The ones I have tested have all got exactly the same SQL server
configuration (default installation of MSDE). "sp_addexten... more >>
Error 1918 Error installing ODBC driver Microsoft Visual FoxPro:
Posted by GPBSOFT at 10/29/2004 6:49:05 AM
I am Italian developer, escuse me for my bad English
I have a problem with ODBC.
I must link to a database from Visual FoxPro, I have installed Windows XP
Professional with service pack 2. When I try to install driver for Visual
FoxPro i see the message:
“Error 1918. Error installing ODBC ... more >>
IPv6 pings with Icmp6SendEcho2
Posted by PaulH at 10/28/2004 1:00:03 PM
I am attempting to write a functon that can perform IPv6 compliant pings.
But, Icmp6SendEcho2 causes an access violation whenever it is called:
First-chance exception at 0x76d641e8 in mping2.exe: 0xC0000005: Access
violation reading location 0x00000000.
Unhandled exception at 0x76d641e8 in m... more >>
Link error LNK2020 in VC7.1
Posted by Vickie at 10/28/2004 12:05:03 PM
I have a very simple program with some computations.
After using NODEFAULTLIB to get rid of LNK2005 errors such as:
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in
msvcrtd.lib(MSVCR71D.dll)
Now I have two new LNK2020 errors:
LINK : error LNK2020: unresolved token (0A0000... more >>
How to put Excel Chart onto VC++ .NET Windows Forms? ERROR!!!
Posted by Bil Muh at 10/28/2004 8:17:22 AM
Esteemeed Developers,
Please do allow me thank You in advance for your sincere guidances.
I am facing problems while Putting Excel Chart 10.0 Component onto VC++
..NET Windows Forms.
I am developing an windows application on "Windows Forms (.NET)" by using
Microsoft Visual C++ .NET v20... more >>
Trouble adding a reference to C++ DLL in C#
Posted by Lee Greco at 10/28/2004 8:05:08 AM
A third party vendor has provided me with a DLL authored in C++ .Net. The
vendor's package includes the DLL, .lib and all necessary .h files and sample
code to develop a C++ .NET app. For the C++ sample project to run, the .lib
file needs to be added to the additional dependencies, the Stack... more >>
Run time link error! New to version 7 .NET
Posted by Noel Angel at 10/28/2004 5:23:04 AM
Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was
thrown during process load
I have put in the LIBPATH directive to the directory containing the .libs of
interest and I have placed the library names in the command line window.
MSVC++ still can't find the .lib/dll wh... more >>
GetTickCount problem P4 hyperthread
Posted by Dark74 at 10/28/2004 5:14:10 AM
Vladimir Nesterovsky wrote:
> If you realy need to measure short time use rather
> QueryPerformanceCounter
> and QueryPerformanceFrequency instead of GetTickCount.
> --
> Vladimir Nesterovsky
> e-mail: vladimir@nesterovsky-bros.com
> home: [url]http://www.nesterovsky-bros.com[/url] [/B]
T... more >>
Forced 7.1 upgrade, now everyone hates me
Posted by Rudy Ray Moore at 10/27/2004 11:40:56 AM
I forced everyone upgrade to MSVC 7.1/.net/2003 from MSVC6. Now my coworkers
hate me! I try to explain that VC has better template support, but they are
still very angry.
What can I do to make my coworkers enjoy VC7.1/.net/2003 more and not want
to kill me?
Believe me when I say it is v... more >>
Header file for GetRegistryKey?
Posted by Derrick at 10/27/2004 10:49:13 AM
Hi all -
Trying to write a simple MFC app (though with VS.NET) that goes and checks
for registry key
FindRegistryKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NetFramework\Policy\
v1.1")
Can't seem to find the include file for it though? Been a while since I've
been in C++ land, thanks in a... more >>
GetTickCount problem P4 hyperthread
Posted by Dark74 at 10/27/2004 9:46:12 AM
On P4 hyperthreaded processor if I get GetTickCount() twice with very
short time difference (just a few linear code line) somethimes it hapen
that the seccond call of GetTickCount() result in smaller value like the
first call, veird? I just invented a time mashine:)..., ok with jokes,
has anyone ha... more >>
Managed C++ calling unmanaged C++ dll
Posted by brckcc at 10/27/2004 8:11:09 AM
I have a managed C++ dll,, which is called from C#. The managed C++ module
then calls a non-managed C++ dll which returns a linked list. If I pass in a
beginning node, and then have the non-managed C++ dll add links to the
existing node, everything works fine. If I pass in a pointer-to-a-po... more >>
vc80.idb gets locked in vc express 2005
Posted by ERROR at 10/27/2004 5:25:09 AM
hi all...
just wanted to ask if anyone got any work around about the vc80.idb file
getting locked or write-protected by some backgroup thread (may be)?...
or does it happens to u or not?...
right now...if i want to build the program...i have to restart the IDE and
press F5 as soon as po... more >>
where can i find some vc 2005 sample?
Posted by kevin at 10/26/2004 6:35:10 PM
i really need it to master the new c++ grammar.
... more >>
Problem with locales in unloaded DLLs
Posted by Hendrik Schober at 10/26/2004 6:23:12 PM
[x-posted to microsoft.public.dotnet.languages.vc
and microsoft.public.vc.stl]
Hi,
we just ran into a bug that seems to be a show-
stopper for us.
We are making a plugin (DLL) for some application.
It is loaded from the app (presumably) using
'LoadLibrary()'. Then code in the DLL is execu... more >>
HEAP: Free Heap block 128eee0 modified at 128ef08 after it was freed
Posted by ÎÞÒâ at 10/26/2004 6:07:40 PM
I was just create a new object. What's the problem? I'm almost mad.
HEAP: Free Heap block 128eee0 modified at 128ef08 after it was freed
CNetClassPt tempNet=NULL;
for(int i=1;i<= count;i++)
{
tempNet= new CNetClass(DTISlot(i),VoxSlot(i),&g_appIntf[i]); //<--------
occur here.
te... more >>
INSTALLATION ERROR
Posted by yln at 10/26/2004 11:44:46 AM
HI,
when iam installing vc++6.0 enterprise edition in windows Xp
"COULDN'T CREATE C:\...\PROGRAME FILES\COMMON\ ...\REPOSITORY DIRECTORY
ANY ONE TELL WHAT IS THE PROBLEM
... more >>
Conversion from C++ to /clr yields 'LNK4248 unresolved typeref tok
Posted by softwarerocks at 10/26/2004 10:43:01 AM
My first attempt to convert a fairly complex C++ project to MC++ using the
/clr switch has several problems. The source compiles fine (with deprecated
warnings of course). The linker emits several LNK4248 messages all related
to _IMAGELIST and _TREEITEM. When I try to execute the applicatio... more >>
2005 Express edition
Posted by Bonj at 10/26/2004 6:58:37 AM
Hi
I installed .NET 2005 express edition, and am about to unnistall it again
because it can't seem to be able to even insert a resource file into a
project. Can anyone tell me is this right? Should it be able to?
I know it's express edition, and therefore limited functionality, but surely
... more >>
Create Dynamic Controls and Displaying Page by Page on the form
Posted by Bil Muh at 10/26/2004 3:23:02 AM
Esteemede Developers,
I would like to Thank All of You in advance for your sincere guidances.
I am developing a software using Visual C++ .NET Standard Edition with
Windows Form (.NET) template.
Briefly :
------------------------------------------------------------------------------------... more >>
installer / setup creator?
Posted by Bonj at 10/26/2004 1:35:02 AM
Hi
Is there a free installer / msi / setup creator available , that is capable
of installing assemblies into the GAC folder, the same way that the setup
project wizard in VS.NET does?
only free.
... more >>
it fails to retrieve fresh userinput
Posted by marco.nl at 10/26/2004 12:41:07 AM
it fails to retrieve newly intruduced data by the user.
i tried this ...
AfxGetApp()->WriteProfileString("Settings", "email", EDIT1);
UpdateData(FALSE);
and this..
CDHtmlDialog::GetElementText(_T("email"));
if(CDHtmlDialog::GetElementText(_T("email")))
{
EDIT1=_T("works");
}
else... more >>
Possible copy constructor bug
Posted by Ioannis Vranos at 10/26/2004 12:23:10 AM
Unless I missing something, I think this is a bug.
ref class A
{
};
ref class B
{
public:
B(A) { }
B() {}
};
int main()
{
A a;
B b(a);
}
C:\c>cl /clr:safe temp.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.41013
for Microsoft (R) .NET Framewor... more >>
Using unified Event Handling mechanism for COM events
Posted by Ashok Kumar K at 10/25/2004 7:39:09 PM
Hi all,
Where can I get some insight on using the __hook, __unhook, event_source and
event_receiver for specifically COM events. The documentation given in MSDN
is very minimal. I have the following scenario
Server (COM event source) is written in VC++ 6.0 using ATL (event interfaces
can... more >>
standalone executable application without .NET Framework
Posted by Frankie at 10/25/2004 5:10:08 PM
I want to build a standard application (without .NET Framework features)
with my Visual C++.NET. I want to produce a standalone executable
application that runs in another PC without .NET Framework.
How can i do this? (if there isn't .NET Framework, my application doesn't
work...)
... more >>
amd64 and vs.net 2005
Posted by Shawn B. at 10/25/2004 3:44:31 PM
Will the final release get inline assembly? It seems a bit odd to allow it
for 32-bit but not 64-bit one there are so many optimaztions that can be
done. It seems strange to have to code the whole function in asm just to
have about 5 lines of asm in a 200 line code block... I'm supposing it is
... more >>
VS .NET, violates listing order in "Additional Include Directories"
Posted by Arpi Jakab at 10/25/2004 3:17:34 PM
I have a main project that depends on projects A and B. The main project's
additional include directories list is:
...\ProjectA\Dist\Include
...\ProjectB\Dist\Include
Each of the include directories contain a file named "cppfile1.h".
In my main project I #include "cppfile1.h". I rely on t... more >>
Updating the UI from a Secondary Thread
Posted by BG at 10/25/2004 12:06:25 PM
We're having trouble writing the code to update a UI control (label.Text)
from a secondary thread. We're using C# with Windows Forms.
We have a main form named MainForm, a splash screen form named SplashScreen,
and a C# class library named BackgroundProcess.
On application start, we... more >>
[C++/CLI] Inizialization of enum class members
Posted by marcosegurini NO[at]SPAM virgilio.it at 10/25/2004 1:57:56 AM
Hi,
I like to know why in a enum the inizializator has to be fully
qualified even if it belongs to the enumeration.
Many thanks.
Marco.
//--- code
#include "stdafx.h"
using namespace System;
enum class ENUM_ID_TIPO_NODO
{
TNP_MIN = 0x80,
TNP_1 = ENUM_ID_TIPO_NODO::TNP_... more >>
64-bit Question
Posted by Shawn B. at 10/24/2004 11:47:28 PM
Greetings,
Is Microsoft committed to improving 64-bit support (AMD 64) in the compiler,
and more directly, will there be inline assembly allowed for 64-bit builds
as currently there are not, and then last of all, will there be
documentation provided for the ML64 utility that is included in the... more >>
IntPtr to structure conversion
Posted by michaelc NO[at]SPAM random-logic.com at 10/23/2004 9:54:41 PM
Hi, all
Please help me to solve compilation error :
frmDeviceEnentsHandl.cpp(32) : error C2440: 'type cast' : cannot
convert from 'System::IntPtr' to 'DEV_BROADCAST_HDR *'
in next code :
void DManArrivedDeviceHandler::frmDeviceEnentsHandl::WndProc(Message*
m)
{
if( m->Msg == WM_DEVI... more >>
IDE: outline block always expands after paste?
Posted by John Doe at 10/23/2004 8:40:41 PM
I collapse an outline block, then copy it, then paste it. In my experience,
the outline block always expands after the paste. Is their a way to modify
the editor's behavior so that an outline block does not automatically
expand when pasted into place?
Thanks very much in advance.
... more >>
stdout redirection
Posted by Nadav at 10/23/2004 4:29:02 AM
Hi,
Introduction:
***************
I am trying to redirect stdout to a RichEdit control, this is done by
initiating a StringWriter, associated it with a StringBuilder and setting the
Console.Out to the String Writer, when ever the RichEdit is to be updated
text from the StringBuilder is be... more >>
C++ for .NET question
Posted by Jonathan Wilson at 10/22/2004 9:06:12 PM
Other than the fact that it compiles to .NET IL code instead of to raw x86
assembler, what are the other differences between the C++ for .NET and
regular C++ for x86?
Also, what compiler(s) do you use to compile for .NET and what options are
available for compiling to .NET?... more >>
gui using .net
Posted by bbc1280a NO[at]SPAM hotmail.com at 10/22/2004 7:45:29 PM
I want to create a GUI using VS .NET. For now I just want to input
some parameters used by the algorithms I've written in C++. Maybe
later I want to access a database to load the data from and plot
figures if it isn't too hard to do.
I haven't done any GUI's before so what should I use? Do you... more >>
=== COM / .NET debugger question
Posted by gregofiesh NO[at]SPAM yahoo.com at 10/22/2004 6:24:06 PM
All,
I have a .NET assembly (DLL) and a VB6 app.
I can access the .NET DLL from the VB6 app, but I don't know how to
get the DLL to launch inside the VS.NET debugger so that I can step
through it.
There is a lot of articles out there on how to register the .NET
assembly as a COM object ... more >>
MC++ Unmanaged MFC calling Managed WinForm class
Posted by William F. Kinsley at 10/22/2004 3:04:47 PM
I am thinking of porting an existing MFC application to MC++ and I have
created a simple MFC application to test the environment. My sample MFC
application is compilied with the /clr switch. I added a basic WinForm
class(via the wizard). In my MFC WinApp class I have a menu message handler
t... more >>
weird VC.NET 2003 compiler behaviour (for C++ windows DLL based project)
Posted by Daniel Yelland at 10/22/2004 2:28:01 PM
Hi,
I have developed a number of code libraries in Win32 DLLs and have written a
number of test suite executables that implicitly link to these libraries in
order to test them. In one of my test applications, which runs fine in Debug
mode, it is crashing in the destructor of a local object on ... more >>
Second Chance Exception Terminates Application
Posted by MKJ at 10/22/2004 1:12:09 PM
Oleg Starodumov wrote:
> *You can download Debugging Tools for Windows and install them:
> [url]http://www.microsoft.com/whdc/ddk/debugging/default.mspx[/url]
>
> Then run the following command at the moment when you see the error
> message:
> cdb -pn AM665.exe -pv -c ".dump c:\am665.dmp;q"
... more >>
|