all groups > visual c > july 2006 > threads for july 8 - 14, 2006
Filter by week: 1 2 3 4 5
MFC exe Crashes with /clr option
Posted by Jacquie at 7/14/2006 10:50:52 AM
I have a MFC app that was developed with VC++ 2003 7.1 . I have now
upgraded to VC++ 2005 8.0. Eventually I plan on using a Windows Form
Control and hosting it on existing dialog.
1) First I compiled the project in 2005 and fixed a few errors and am
able to compile/run with seemingly no proble... more >>
Jagged Arrays as parameters in Managed C++
Posted by davidcjmack NO[at]SPAM googlemail.com at 7/14/2006 9:26:23 AM
I have to implement a delegate from a c# assembly. It has the
signature
public delegate void Change(int[] row, int[][] col);
The error I get given when I try to implement a compatible method,
void test(int row __gc[], array<array<int>^>^ col)
say, is
Error 1 error C2061: syntax err... more >>
crash in release build, but it works on debug build
Posted by kevinding NO[at]SPAM tom.com at 7/14/2006 12:28:54 AM
Hi All,
We meet an evil condition for our project. Our project has 3 layers.
A C# layer to do some business logic, and Managed C++ layer translate
managed values to native ones or vice verse.(vs2005, /clr:oldSyntax) .
UI layer are written in native C++.
Currently, we meet a random cr... more >>
How to embed a resource in the assembly?
Posted by Lloyd Dupont at 7/14/2006 12:00:00 AM
In C# project I could include any file in my assembly and access them with
Assembly.GetManifestResourceStream(...)
Is it possible to do the same thing in ManagedC++ projects?
How?
... more >>
Compile C source in mixed-mode projects
Posted by DFB at 7/13/2006 9:38:38 PM
I am the author of the ZLibNetWrapper project on SourceForge (located
at zlibnetwrapper.sf.net). This project is a simple mixed-mode .NET
wrapper around the ZLib compression library. The ZLib code consists of
a few C source files.
For Visual Studio 2003, this wrapper compiled fine without h... more >>
debugging with a pdb file
Posted by MBB at 7/13/2006 11:49:54 AM
hello, all,
my problem: my company sells an COM component compiled in VS6 using ATL. one of
our valued customers is having some problems with a beta version of our
component; it crashes their app. they develop in VSdotNET.
i am considering the possibility of providing them with a pdb file al... more >>
How to find out what files belong to a project?
Posted by RedJoy at 7/12/2006 8:14:01 PM
I am trying to "clean up" a solution with 10 projects and I was wondering if
there is a way to "traverse" the source files to find not only the #includes
but also remove #includes that are not needed for a file.
--
Thanks,
Michael S. Wells \|/
Software Engineer ... more >>
Usages of a SortedList
Posted by Prez at 7/12/2006 1:56:20 PM
I started writing .net code yesterday and I am grasping it well enough.
I have a few questions about SortedLists.
I am using managed C++ if that makes any difference.
Of the examples I have seen it looks like the Sorted List does not use
the ^ while other variables do use the ^. I have... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Where are rtc libraries?
Posted by jpetrang NO[at]SPAM harris.com at 7/12/2006 12:29:37 PM
Hi,
I'm trying to recompile a program originally done with VC6, with VC++
Express plus the Platform SDK. I'm an embedded C programmer... I
know next to next to nothing about programming Windows applications.
So, I got some unresolved external link errors about security_cookie,
which I found... more >>
Problem with STL
Posted by Lloyd Dupont at 7/12/2006 12:00:00 AM
I'm trying a double indirect look-up table for some function pointer in =
my app (yep, I have good reason).
I'm trying to use std::map for the table but (because of the double =
indirection) I need to use a "std::map*"
Which I don't know how to map[index] (with a pointer)
Now perhaps I'm misu... more >>
Petzold's MessageBoxPrintf
Posted by Sumit RAJAN at 7/12/2006 12:00:00 AM
In the second Chapter of Charles Petzold's "Programming Windows", 5th
Edition, we have the following listing:
/*-----------------------------------------------------
SCRNSIZE.C -- Displays screen size in a message box
(c) Charles Petzold, 1998
-----------------------... more >>
trying to compile a C file in a C++ CLR project
Posted by Lloyd Dupont at 7/12/2006 12:00:00 AM
Give me this error:
Error 1 Command line error D8045 : cannot compile C file
'..\..\..\..\Dev\API_C++\cutil.c' with the /clr option cl
But it's a very ordinary C file!
no special function like setjmp just malloc/free and some pointers
Any idea?
... more >>
dll with class
Posted by Gabi at 7/11/2006 11:29:01 PM
hi all,
i have some class with a few methods inside.
those method used by external program (as a dll).
how should i declare those class methods so i can use it outside??
another question is it possible to declare the all class as import or export??
Thanks... more >>
Singleton in native library with C++/CLI
Posted by Adrian at 7/11/2006 10:59:12 PM
Hi,
I have a large unmanaged static C++ library which I've wrapped using a small
C++/CLR DLL. This is called from a C# client application.
The static library has a singleton, however it appears that it is being
instantiated twice. The first instantiation is down to me calling
singleton.i... more >>
Callbacks and Managed Code
Posted by Spyder at 7/11/2006 2:50:01 PM
I am trying to wrap a very old dll from Epson with a Managed Dll.
Their declaration for the callback is this:
typedef int (WINAPI* DLL_BiSetStatusBackFunction)(int, int (CALLBACK EXPORT
*pStatusCB)(DWORD dwStatus));
but when I compile it, I get the following errors:
Error 1 error C2143: ... more >>
Converting from VS.net 2003 to VS.net 2005
Posted by Adish Solanki at 7/11/2006 10:39:01 AM
We have a MFC win32 desktop application written in Visual C++. We were using
Visula studio 2003 as the editor and everything was compiling, linking and
working fine. Since we want to move to .Net world, we are in process of using
Visual Studio 2005 instead of Visual studio 2003. During the con... more >>
RegSetValueEx
Posted by elitecodex NO[at]SPAM gmail.com at 7/11/2006 6:55:26 AM
Hey everyone. I have a function that reads in a registry value (for
the windows firewall) and one that disables it.
Reading the value works perfectly. However, I am getting an access
denied error when trying to set the value. Here is the body of the
function
HKEY hkeyFirewall;
if ( ... more >>
Converting a VC 6.0 project
Posted by Sugan at 7/11/2006 12:15:29 AM
Hi all,
A VC 6.0 project( output is a Activex DLL) is converted to VC 2005
project and the output here is again a DLL.
When i try to include this DLL as a refernce is another VB 2005
project, i see this DLL as a COM DLL and it is creating a interop DLL
for interoperability. Why is it still ... more >>
Converting a VS 6.0 project
Posted by Sugan at 7/11/2006 12:15:18 AM
Hi all,
A VC 6.0 project( output is a Activex DLL) is converted to VC 2005
project and the output here is again a DLL.
When i try to include this DLL as a refernce is another VB 2005
project, i see this DLL as a COM DLL and it is creating a interop DLL
for interoperability. Why is it still ... more >>
How to make a DLL in C++ an duse it in Visual Basic 6?
Posted by Carlos VillaseƱor M. at 7/11/2006 12:00:00 AM
Hi Everybody!
I need to develop some functions in C++.NET DLL and share it to Visual
Basic 6.0, which is the best path to create a C++ DLL an then use that
function later...?
I appreciate some help.
Thank you
Carlos Villaseñor M.
... more >>
File Version Info On Windows Mobile 5.0 for PocketPC...
Posted by opswat at 7/10/2006 4:58:02 PM
Hello,
I am currently working on a C++ project for a PocketPC with Windows
Mobile 5.0 in Visual Studio 2005. I am currently looking for a way to get
file version information, i.e. file version, product version, file modified
date, file creation date, etc. The only way I could find wa... more >>
Ambiguous symbol error C2872 with WinAPI
Posted by davidk13 at 7/10/2006 10:20:01 AM
My C++/CLI program uses the WinAPI to create a document, and my use of the
Rectangle function--BOOL Rectangle (HDC hDC, int nLeft, int nTOP, int nRight,
int nBottom--results in a compiler error C2872-'Rectangle':ambiguous symbol.
How can I resolve this ambiguity?
Thanks,
David... more >>
Afew simple questions
Posted by Patrick F at 7/10/2006 7:46:02 AM
Hi
Trying to learn c++ and am woundering over afew things
1) What is the diffrence between . and -> and :: ?
2) Why do you sometimes have to use ^ after declaring a object, what exacly
does it do?
3) What is the diffrence between & and *? (I know that * is a pointer)
4) Managed and Unmanaged ... more >>
trend micro housecall qaurantined important files help
Posted by nikhilton at 7/10/2006 3:12:02 AM
I used trend micros housecall online scanner and it qaurantined alot of
important files on my pc i.e. university coursework, its currently in a
folder called ".housecall" id be really grateful if anyone could tell me how
to restore these files.... more >>
Data structure and exception
Posted by Lloyd Dupont at 7/9/2006 12:00:00 AM
I'm attempting to write a fairly complex data structure.
One part of the complexity is that all 8 data operations it supports
delegate some code to virtual method.
This is by design because I want the user to subclass the data structure and
be able to prevent changes to happen. and / or I ... more >>
Instantiate (Constructor) syntax problem.
Posted by MilanB at 7/8/2006 12:22:01 PM
Hello
I new to intantiate following array:
CString (**newArray)[2]
I tried following syntax, by fail.
int count = 10;
CString (**newArray)[2] = new (CString*[2])[count];
How to write correct syntax?
Thanks
Milan
... more >>
|