all groups > visual c > january 2004 > threads for january 1 - 7, 2004
Filter by week: 1 2 3 4 5
EventLogger and XP question!
Posted by Evgeny at 1/7/2004 5:41:28 PM
Hi, all!
When my application writes to event log the XP (it occurred only on XP
machine!) adds to my message not expected additional info:
For more information, see Help and Support Center at
<http://go.microsoft.com/fwlink/events.asp>
How could i prevent it?
Thanks in advance,
... more >>
compiling from the command line
Posted by MCSD at 1/7/2004 5:39:34 PM
what's the vc++.net compiler name? you have vbc.exe for vb, csc.exe for C#.
what's the name for C++? I can't find it. :-(
TIA!
... more >>
tool/utility that converts the address into source code line - for memory leak
Posted by Barkha Shah at 1/7/2004 2:11:12 PM
Hi All,
I am looking for a tool/utility that converts the address into source code
line.
Purpose is that I have written a basic mfc application that purposely has a
memory leak.Now at the exit of the application I get a memory dump in the
output window as mentioned below. Its a simple progra... more >>
Re: Compiling VC++ 6.0 to the .NET CLR
Posted by Bret Pehrson at 1/7/2004 12:06:47 PM
Tom/Arif -- you need sample code to decipher a linker warning? I think not --
the linker needs to be fixed to produce some usable context for the warning
(and inevitable error).
I'm working w/ a project consisting of hundreds of files. Posting source is
not an option, and it isn't somthing t... more >>
compile error msg
Posted by mn04 at 1/7/2004 8:16:08 AM
I am getting the following error message during compilation of my C++ program on XP laptop using .NET libraries:
ossxerces_utils.cxx
C:\narayan\axcelis\Lib\ossxerces_utils\src\OssDataFileTemplate.cxx(122) : error
C2582: 'operator =' function is unavailable in 'std::basic_ofstream<_Elem,_Trait
... more >>
Mdi Child Form in Mdi Parent Form
Posted by sylvain__benoist NO[at]SPAM hotmail.com at 1/7/2004 7:58:37 AM
Hi,
I am developping a Visual C++ application. In my application, I
created a Mdi parent form with a main menu. I also created a
"menuItem" click to display a Mdi child form. I want in this case to
display the Mdi child form in all the Mdi parent form.
The problem is that the Mdi child form... more >>
OT - hardware?
Posted by Bonj at 1/7/2004 4:22:14 AM
I've got a 1.3 GHz computer with 128MB RAM, running XP
Pro. I am also running .NET 2002 and VS6.
When using .NET - various operations are quite slow - such
as loading it, opening a project, loading help, compiling
for the first time, etc.
This sometimes also happens with VS6, but not to as g... more >>
Arrays within classes
Posted by ellie at 1/7/2004 2:54:59 AM
How do you add elements to an array defined within
another class?
For instance,
class CEntity
{
public:
int num_inPort;
int num_outPort;
int entityCount;
char* inPortName[100];
char* outPortName[100];
CArray<CString, CString&> inPortNameArray;
}
CEntity R1;
R1.num_inPort... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
hm, is this ok to compile without any error? (vc71)
Posted by Gabest at 1/7/2004 12:09:24 AM
class X
{
public:
X() {_tprintf(_T("Hey!\n"));}
};
int _tmain(int argc, _TCHAR* argv[])
{
X(qwerty);
return 0;
}
output: Hey!
... more >>
Repost - Converting from pure mode to mixed mode Dll
Posted by Edward Diener at 1/6/2004 10:48:14 PM
I received no answers about this the first time I posted, so I will try
again. My inability to decipher an MSDN topic may find others who have the
same inability and someone who can decipher and explain it.
I have some questions about the instructions for creating a mixed mode DLL
in the MSDN ... more >>
how to access c# code into vc++ .net
Posted by Kanaiya at 1/6/2004 8:50:35 PM
how to access code of C# dll into vc++ .net. and aslo if i
want to take code of c# directly in to vc++ .net project
how it is possible. ... more >>
Multithreaded UI problem
Posted by dudermang NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/6/2004 5:31:21 PM
Ok, I've read a handful of articles out there concerning the issue of
accessing a control from a thread other than the one from which it
was created. I think the most well-rounded solution I found is to
create a delegate to a function that accesses the control and then
call this->Invoke( theDel... more >>
Binary "and" operator in enum loop
Posted by Peter Hemmingsen at 1/6/2004 4:39:29 PM
Hi,
I'm trying to write a function taking an "flagged" enum as parameter. The
function should then loop through the enum and do some stuff for each flag
that are set. Below is some sample code showing what I'm trying to do. The
problem is in the line:
if (val->GetValue(i) & it)
as there ... more >>
Question concerning dotnextfx.exe in project deployments
Posted by JimC at 1/6/2004 4:11:30 PM
Suppose a developer has a setup.exe file that can be downloaded
from his online site, rather than from a distribution CD.
If the targeted user were using a CD, of course it would be easy to
include dotnetfx.exe on the CD and install it silently (or relatively
silently) if needed.
But from a... more >>
Closing File Handles
Posted by Kangan at 1/6/2004 2:11:28 PM
Hi,
I am new to coding in Windows. I need to know if its
possible to close all the handles open (If there are any)
to a particular file. The assumption here is that, I do
not know if there is any handle open to the file or not.
Since I do not have access to a project, I have to handle
th... more >>
SSL and web services - Repost
Posted by wjred NO[at]SPAM hotmail.com at 1/6/2004 11:21:25 AM
I'm trying to consume a .net web service with VC++.net. It works fine
without SSL but will not work at all with SSL and no exception is
thrown. Can someone please explain possible causes as to why this is
happening? By the way, no client certificate is required and you can
browse to the URL i... more >>
using GDI+
Posted by Bonj at 1/6/2004 9:15:28 AM
How can GDI+ be used from C++?? I tried the following
methods, but all failed with about 100 different errors
relating to stuff that was not in any file I created.
The file <gdiplus.h> only exists on my (XP pro) system in
a directory that was underneath the .NET install directory.
So I added... more >>
dll sample or walkthrough?
Posted by Randy at 1/5/2004 8:42:34 PM
Hi, I need to create a simple dll which will be used by
MS Access and .ASP apps. What type of dll would be best
and can anybody point me to a complete example which I
can compile and run with Visual C++ .net?
Thanks,
Randy
... more >>
Help linking dll in VC7 .Net
Posted by Hadi at 1/5/2004 6:26:04 PM
Hi,
I have two files libqdbm.dll.a and qdbm.dll. In cygwin libqdbm.dll.a is
located in /usr/local/lib while qdbm.dll is located in windows/system32.
I have my test project which I compiled in cygwin using the following
command:
gcc -I/usr/local/include -o test test.c -L/usr/local/lib -lqd... more >>
How to convert MFC dialog based application into a simple process without any GUI
Posted by Jigar Mehta at 1/5/2004 5:54:56 PM
Hye,
Jigar Mehta from India. I have one application of MFC - dialog based
application. Now I don't want GUI in that. It is a pure multithreaded
process which will run continuously and does some task. How to remove the
dialog before it loads itself... (It is to be noted that I have to have MF... more >>
Need to build compiler
Posted by J. B. Thomas at 1/5/2004 2:04:52 PM
Hi, I need to create my own compiler for a programming
class. I'm wanting to do this w/ a Microsoft compiler,
i.e. not gnu or some other Linux/Unix mess. Does anyone
know of some good Microsoft references?
Thanks a great deal in advance!
Josh Thomas... more >>
no OutpuDebugString output ?
Posted by Pavel at 1/5/2004 11:43:23 AM
Hi All,
It looks like VS.Net does not display messages from
OutputDebugString while debugging managed code. Is it
right? Afraid so, or calls to this would work:
[DllImport("kernel32.dll")]
extern static void OutputDebugString(String str);
Anyway, I would love to be able to see debug m... more >>
LNK2022 Error
Posted by mdennis NO[at]SPAM divestco.com at 1/5/2004 11:05:38 AM
I'm trying to compile with the /CLR option in VS.NET 2003.
I get the following error :
error LNK2022: metadata operation failed (8013118D) : Inconsistent
layout information in duplicated types (tagYYSTYPE): (0x02000072).
tagYYSTYPE is defined as follows :
union tagYYSTYPE {
char ... more >>
Looking for reference books for writing MFC codes on .Net
Posted by Brilliance Qian at 1/5/2004 10:47:54 AM
I was used to write codes based on MFC on VC++ 6.0. Now the development
platform in our company is immigranted to Microsoft Visual C++ .Net. Can
anyone recommend some reference books on Visual C++ .Net? Thanks in
advance.
... more >>
How to add a method member to a class or object in run-time?
Posted by peter at 1/4/2004 8:40:56 PM
In run-time,is there any approach to add or revise the
members,such as method or attribute ,of a class or object?
As for the object of class soapclient30 in MS soap
toolkit, after it executes the mssoapinit method,it will
have some additional methods which have been described in
WSDL f... more >>
VC6.0 limitations
Posted by newbe at 1/4/2004 6:41:05 PM
Does the standard version not allow opening of files? I copied and pasted code from help files and was able to compile without errors. It runs OK, but it will not open a file. The output I get is 'The file 'data' was not opened'. Is it necessary to own professional version to be able to open a d... more >>
how to do drag and drop asynchronously?
Posted by Wei Junping at 1/3/2004 11:56:18 PM
Hi, all.
I want my program act as an drag source and do drag and drop asynchronously.
So, I created a class CDataObject which implements interfaces IDataObject and IAsyncOperation.
To begin drag and drop, I wrote the following code:
CDataObject* pDataObj = new CDataObject(...);
if (pDataObj)
{... more >>
Bug: __gc pointer in delegate declaration causes error message
Posted by Bart Jacobs at 1/3/2004 1:30:53 AM
Dear VC++ team,
I am fairly certain I found a bug in VC++ 7.1.
I get the following error
========================================================================
Microsoft (R) C/C++ Standard Compiler Version 13.10.3077 for .NET Framework
Copyright (C) Microsoft Corporation 1984-2002. Al... more >>
Delegate constructor types
Posted by Edward Diener at 1/2/2004 11:51:33 PM
The first type to a delegate constructor is obvious. It is a System::Object
* . What is the MC++ type of the second argument to the delegate constructor
? In C++ it would be a member function pointer when the first object is not
0, but I can't find its equivalent type in .NET. I would like to sav... more >>
ref or out parameter in delegate, declared in C++
Posted by Eugene Mayevski at 1/2/2004 11:23:15 PM
Hello,
I am trying to declare in C++ and use in C# a delegate which contains
"ref" and "out" parameters.
I declare a delegate as:
public __delegate void SolFSCreateFileEvent(SolFSStorage* Sender,
System::String* FileName, Handle &File, bool Overwrite, bool
IsJournalFile, Error &Result)... more >>
How to freeup the memory...
Posted by Jigar Mehta at 1/2/2004 6:11:30 PM
Hye,
I am using one object which allocates around 2 MB of memory.. Now after
use, I want it to free. But the task can not be done. the memory is still
allocated and not freed. I am using it in thread. so, next time when thread
runs, whole block is allocated for the second time and in just 10... more >>
VC++ .NET 2002: Using native C++ DLLs in MC++ & Getting incomplete output
Posted by Scott Chang at 1/2/2004 5:29:49 PM
Hi all,
I copied a set of VC++ version 6 source code of
the 'cppdll'(2 projects) from a website and put the
cppdll.cpp, cppdll.def, cpp.h, (as the 1st project) and
test.cpp (as the 2nd project) into my Microsoft VC++ .NET
2002 - Windows XP Pro PC:
//----cppdll.cpp----
#include "cppdll.h"
... more >>
Error using CreateDirectory
Posted by Tim at 1/2/2004 7:33:17 AM
Hi, I am trying to create a directory from within my
program. I found the IO::Directory::CreateDirectory
(filename) function, and used that but I get two errors
concerning CreateDirectoryA (one that it takes two
parameters, the other that it is not in IO::Directory).
Did I miss something?... more >>
GetProcessIoCounter
Posted by boutinr at 1/1/2004 10:31:08 PM
I want to use GetProcessIoCounters function. My Visual Studio C++ is Version 6 with SP5. The MSDN library tell me that it is included in winbase.h(IO_COUNTERS) but I cannot find this function or the structure. What's the problem???... more >>
How to make any form hidden...
Posted by Jigar Mehta at 1/1/2004 2:48:50 PM
Hye friends!!!
A silly question but still harassing me. I am developing one project and
in that I want full support of MFC. So, what I have to make is make one
project by Wizard (for MFC-->Dialog Application).. Now I want to hide that
dialog when initializing and start some of the threads de... more >>
Need for commands for receiving attachments from program..
Posted by Jigar Mehta at 1/1/2004 2:34:38 PM
Hye friends!!!
Jigar Mehta from India. Currently making one program in VC++ like
outlook express that sends and receives mails from the server (pop3, and
smtp server only)... I can not find commands that are needed for
communication with server for receiving a mail with attachment..
C... more >>
|