all groups > visual c > february 2006 > threads for february 8 - 14, 2006
Filter by week: 1 2 3 4
Runtime library
Posted by Boni at 2/14/2006 6:37:01 PM
Dear all,
were can I get an info about a Run-Time library to to use. What are
advantages of using Multithreaded or Multithreaded dll.
Thanks a lot,
Boni
... more >>
IMAPI how to register IDiscMasterProgressEvents
Posted by tonylc NO[at]SPAM gmail.com at 2/14/2006 4:23:17 PM
Hey guys,
I got IMAPI to burn, but I would like to set up this progress events so
I can make a progress bar to go along with the burn process. Right now
I'm not exactly sure how to get this to work. I'm assuming I need to
implement the IDiscMasterProgressEvents interface, so I created my own
cl... more >>
std::string <--> System::String*
Posted by ricecake NO[at]SPAM gehennom.net at 2/14/2006 1:41:28 PM
Hello, I am working on cleaning up some code that I inherited and was
wondering if there is anything wrong with my function. I am fairly
proficient in standard C++ but I am pretty new to the .NET managed C++.
It seems to work fine, but everyone knows that programs with errors can
still appear t... more >>
How to associate an Extension with my program ?
Posted by Tran Hong Quang at 2/14/2006 1:15:26 PM
Hi,
Is it possible to write a code in C++ to associate a given file extension
with our application? So that if user double click on the file on Windows
Explorer, our application will be launched.
Thanks
Tran Hong Quang... more >>
value structs : can they have default constructors?
Posted by Peter Oliphant at 2/14/2006 10:50:49 AM
I've been told that value structs can have default constructors (I'm using
VS C++.NET 2005 PRO using clr:/pure syntax). But the following code
generates the following error:
value struct ValueStruct
{
double x ;
double y ;
ValueStruct() { x = y = double(0) ; } // error *
} ;
*... more >>
Application Crash with mixed Mode DLL
Posted by Rama Krishna at 2/14/2006 10:45:30 AM
I have an unmanaged MFC application linked to a mixed mode MFC extension dll
(.NET 2.0/VS 2005) . I followed all the instructions correctly and ensured
that no managed code gets called from the DllMain. When I run the application
it just crashes.
Unhandled exception at 0x013f288e in ImpEDC.... more >>
creating an array of Labels (Windows Forms)
Posted by Neal at 2/13/2006 11:16:26 PM
I need to create many labels to fit on a windows forms and instead of using
the designer to create a large number of text labels I just wanted to make an
array of them and then loop through them to set their properties.
when trying this code
Label labelArray[,] = new Label[8,8];
I get an ... more >>
passing unmanaged pointers
Posted by quat at 2/13/2006 9:06:03 PM
I have two unmanaged pointer in a managed form class:
IDirect3D9* d3dObject;
IDirect3DDevice9* d3dDevice;
In a member function of the form, I call:
d3dObject->CreateDevice(
D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
(HWND)hwnd,
D3DCREATE_HARDWARE_VERTEXPROCESSING,
d3dPP,
&d3dDevice));
I... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
methods inherited from template superclass
Posted by Nishith Prabhakar at 2/13/2006 8:00:59 PM
Hi,
I have a class which inherits from a template (vector). This class is
defined in the header file as below.
Output.h
class _DLL_RESPONSE_SERVER Output : public vector<SingleOutput>
{
public:
Output();
const string& getActualText() const {return m_actualText;}
void insert(c... more >>
CLR and C ??
Posted by Rick at 2/13/2006 12:58:05 PM
Hi guys!!
I have a very big project that originally was made in C, then it was
migrated from C to VC++ 6.0.
Now my boss is asking me to use the new VC++ .Net (2005) to change the
interface of controls and windows in the project. But i don't know if this
is possible, because i can open th... more >>
Event Inheritance w/ c++ CLI not working
Posted by Bart at 2/13/2006 7:16:06 AM
Hello Everyone,
I've just converted my code from the old managed c++ to the new c++ CLI
syntax. Some of my inherited event code is no longer compiling.
Here's part of my code...
c#
public delegate void VEPointPickedEventHandler( float x, float y, float
z );
public abstract class EventB... more >>
helper function concept
Posted by Tran Hong Quang at 2/13/2006 2:30:14 AM
Hello,
What is helper function concept? I am new to C.
Thanks
Tran Hong Quang... more >>
How can i implement a message pump with winforms ?
Posted by nicolas.hilaire NO[at]SPAM motorola.com at 2/13/2006 2:14:23 AM
Hi all,
i'm doing a quite long treatment in a function, and i'm showing the
progress of the treatment with a progressbar. The code is something
like this :
for each(entry in entries) // about 100 entries
{
TreatmentForOneOr2Secs();
this->progressBar1->PerformStep();
}
... more >>
Appdomains and mixed mode assembly
Posted by Boni at 2/13/2006 12:00:00 AM
Dear all,
I have a global variable in the native code.
I was assuming that I create a IJW CLI wrapper class and create an instance
of this class in other appdomain, then the global variables will not be
shared between to. But it is apparently not the case.
Any ideas how I could separate the g... more >>
IDataObject : ambiguous symbol error
Posted by nicolas.hilaire NO[at]SPAM motorola.com at 2/12/2006 8:36:53 AM
Hi group,
when using unmanaged class with my managed app, I've seen errors when
including (for example) <windows.h>.
One of theses erros is :
IDataObject : ambiguous symbol error
I've seen somewhere that to avoid this error, i've to remove all "using
namespace XXXXX" from .h, and m... more >>
Assembly private type C++/CLI
Posted by Boni at 2/12/2006 12:00:00 AM
Dear all,
Following situation
class A{
static Arraylist B;
}
void func(){
A::B=...
}
I would like to allow to use B inside of this assembly but not outside.
If I declare B as private I am not able to use it inside of func(), if
public then it also could be used outside.
Is it possibl... more >>
VS2005: Win64 build mode : project properties 'operation could not be completed'
Posted by Egbert Nierop (MVP for IIS) at 2/11/2006 7:30:18 PM
Hello,
I created a Win64 build environment by copying from a Win32 environment, and
modifying the Win32 macro to the Win64 macro.
After that, the properties window does not load anymore and building or
rebuilding does not work anymore.
On one computer, which is a slightly newer install ... more >>
Definite VC++ Compiler Issue
Posted by Greg at 2/11/2006 5:58:28 PM
Perhaps many have heard of the famous C3767 "Candidate functions...."
I found that by not using a native type (struct ptr) in a constructor
signature, the problem went away. The problem only occurred when calling one
assembly from another with both assemblies using /clr.
When using the con... more >>
Upgrade from VS2003 to VS2005 problems
Posted by Alex at 2/11/2006 3:08:08 PM
Hello people,
We have a large application (about 5000 source files) consisting of =
multiple executables, DLLs and COM components written in C++.
We develop and build it in Visual Studio 2003.
I'm in charge of evaluating whether we want to migrate it to VS2005 (the =
previous migration from... more >>
switch vs Select Case
Posted by ME at 2/11/2006 9:56:12 AM
In C# the following code generates a compiler error
("A constant value is expected"):
public void Test(string value)
{
switch (value)
{
case SimpleEnum.One.ToString():
MessageBox.Show("Test 1");
break;
case SimpleEnum.Two.ToString():
MessageBox.Show("Test 2");
break;
case SimpleEnum.Th... more >>
Getting an HWND
Posted by quat at 2/10/2006 7:36:22 PM
Hello all,
I have some unmanaged code that requires an HWND to a managed control (e.g.,
a picture box). I try:
mRenderWnd->Handle;
Of course, this returns an IntPtr. If I try to case, I get the error:
Cannot convert a managed type to an unmanaged type
What do I need to do? The wh... more >>
mixing managed/unmanaged help
Posted by quat at 2/10/2006 7:22:50 PM
I am getting the error:
error C4368: cannot define 'd3dPP' as a member of managed 'FormEx::Form1':
mixed types are not supported
I am trying to mixed managed and unmanaged code (d3dPP is unmanaged, where
the form is managed). Can I not have an unmanaged instance in a managed
class?
... more >>
Load assembly exception
Posted by Boni at 2/10/2006 5:46:42 PM
Dear all,
I created a mixed mode exe assembly. Now I try to load a class from this
assembly within the VB project. I get following error:
Unhandled Exception: System.IO.FileLoadException: Attempt to load an
unverifiabl
e executable with fixups (IAT with more than 2 sections or a TLS section... more >>
MSBuild question
Posted by minorguy at 2/10/2006 10:58:27 AM
I have a general question about MSBuild (which I know little about so far)
and I hope this is the right newsgroup. I can read the reference
documentation about MSBuild, but it's not really telling me what I want to
know. Perhaps someone can point me in the right direction.
We have several p... more >>
get current user/domain
Posted by Michael at 2/10/2006 5:58:26 AM
Hello,
does anyone know how to find out the logged in user with domain in vc++ ?
Thanks for help
Michael
... more >>
[c++/CLI] What does EXACTLY happen when I compile a native class with CLR ?
Posted by bonk at 2/9/2006 1:58:59 PM
Hello,
I am currently trying to wrap my head around what actually happens when
I compile a normal (native) c++ class with the /CLR Flag in Visual C++
2005 (C++/CLI).
Suppose I have the following class deklared in c++:
// #pragma managed or #pragma unmanaged
// does not seem to make any... more >>
HELP! VC 8.0 deployment problem.
Posted by larry at 2/9/2006 1:39:36 PM
I changed my developing tools from Visual Studio 2003 to 2005. I
compiled my application (Unmanaged code) and deployed it. I didn't biuld
a setup program. I just copied exe file, mfc80.dll and msvcr80.dll to
target computer. But I got an error message: Application can not start
because applicati... more >>
IJW on static library? Beginner question
Posted by Notre Poubelle at 2/9/2006 11:11:27 AM
Hello,
I have a large legacy MFC application. As is typical, there is an
executable along with several MFC DLLs. One of these DLLs is created by
staticly linking in many libraries resulting in one very large DLL that has
the bulk of the code.
I've downloaded the MFCWinFormsSample.EXE... more >>
.NET remoting
Posted by Boni at 2/8/2006 11:27:21 PM
Dear all,
I am a newby in remoting so please forgive me if the question is stupid.
I have a native c++ prog which executes a long calculation. Now I would like
to start this prog on many PC's in my network simultanously. The idea is
1) Create a managed wrapper in C++/CLR. This wrapper is a ma... more >>
How to display a MessageBox, which can disappear itself?
Posted by larry at 2/8/2006 1:25:03 PM
I want to display a message to user when machine is doing background
job, when the job is finished the message disappear automatically. Do I
have to create a modeless dialogbox to implement it? Is there a easier
way to to that?
Larry
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroup... more >>
Executing .Net EXE in DOS
Posted by Rajeesh at 2/8/2006 12:00:00 AM
Hi
Can we execute the exe, compiled using .Net environment in DOS platform
after booting from DOS floppy disk
Thanks
Rajeesh
... more >>
Where is intsafe.h?
Posted by Ian Harding at 2/8/2006 12:00:00 AM
I want to use the function ULongLongToLong, documented in MSDN. The
function information contains:
Header = intsafe.h
Import library = None
I have an installation of Visual Studion 2005 standard edition, but
intsafe.h is not present anywhere on my system.
This is part of the Windows S... more >>
|