all groups > visual c > august 2007
Filter by week: 1 2 3 4 5
"project creation failed" error
Posted by snowbkid1 at 8/31/2007 10:32:01 PM
I have Visual C++ 2005 express edition, I downloaded it from the microsoft
website. I am using it for school. I started an assignment in the lab at my
school, and for the asssignment I had to create 3 projects under one
solution. They were created no problem, each with just a few lines of
ex... more >>
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Posted by Boris at 8/31/2007 6:05:26 PM
I have a mixed DLL (a managed DLL in C++ calling functions in other
unmanaged DLLs) which I can build successfully in Visual Studio 2005 but
can't reference as I get then immediately the error:
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Trying to find out what... more >>
Comments on Methods/Properties for C++/CLI are not visible in the Assembly's Metadata
Posted by Subodh at 8/31/2007 11:51:00 AM
Hi All,
I am creating a C++/CLI project which will be consumber by C#
application.
I have added comments for my properties/Methods in my C++/CLI project
using .net XML tags, but when i reference this project in my C#
application, i dont seee these comments in the intelisense as well as
the A... more >>
Can we have a internal ref class in C++/CLI
Posted by Subodh at 8/31/2007 6:17:44 AM
Hi All
Can we have a internal ref class in C++/CLI?
when i try to declare a internal class in my project i get error
message
internal ref class MyError abstract sealed
{
public:
static List<String^>^ GetLastErrorListEnglish(void);
}
Error 1 error C2143: syntax error : missing ';' bef... more >>
Probleme with pointer of pointer
Posted by alexis.meilland NO[at]SPAM gmail.com at 8/31/2007 12:00:00 AM
Hello,
Well I am in MC++ .Net 2.0
I want to transform a type lib com to interop assembly.
To do that action, I have to load the typelib thanks to the following
function.
[ DllImport(S"oleaut32.dll", CharSet = CharSet::Unicode, PreserveSig =
false)]
extern void LoadTypeLibEx(String *strT... more >>
dll and static lib
Posted by Noah Roberts at 8/30/2007 1:59:26 PM
I would like to compose a dll of several static libraries. This is to
modularize the code a bit but keep the whole thing in one package
instead of having multiple dll's to distribute. Is there any way at all
to do this? I can't find any method of exporting a symbol from a dll
that is impl... more >>
__event?
Posted by PGP at 8/30/2007 10:46:08 AM
Anybody here using __event? Could you please discuss any potential issues
with it other than portability?
Priyesh
... more >>
String::Format problem
Posted by Kuliński at 8/30/2007 9:28:31 AM
I spent many hours on this, googling around and experimenting, and still
nothing.
I wrote an umanaged program (actually various classes), while I was
developing them I used command line to test it.
Now, I decided to make GUI for it, so I created new project: "Windows Forms
Application (.NET)"... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Compatabilty of Visual Basic C++ with windows vista
Posted by Ajay Sharda at 8/29/2007 7:22:01 PM
Is there any way by which we can make visual basic C++ compatible with
WIndows vista... more >>
Routines in mixed (managed and native) assemblies
Posted by Bob Altman at 8/29/2007 5:29:51 PM
Hi all,
I have an unmanaged DLL. The entry points in the DLL are declared via a
..def file (which is syntactically easier for me to deal with than the arcane
#pragma gibberish).
Now I want some of the functions in this DLL to interact with a managed DLL.
For performance reasons, I need ... more >>
automatic update problem
Posted by flyerd at 8/28/2007 9:06:01 PM
I have win xp home, automatic updates set for auto at 3:00 am. The download
and install happens. (Proved by looking on web update history and in windows
directory) however the yellow icon w/ the exclamation point shows up in the
tray to manually install the same updates. Also most of the la... more >>
Failure Fixed Disk
Posted by lascheck at 8/28/2007 5:08:01 PM
Recently I was on my laptop and it shut down on me, when I tried to reboot,
it came up with the error code Failure Fixed Disk, then goes straight to
Bios. I can't even get windows to come up at all to try a virus scan or
anything. Any ideas?????
Also I have Windows XP, and the hard disk c... more >>
How to assign a 'char *' to a text property of a control
Posted by Steven at 8/28/2007 2:50:00 PM
Hi, I'm new at Visual C++ and I can't figure out how to change the text
property of a label. I'm using a char[] variable that I'd like to assign to
the label. Perhaps I should use a System::String^ instead? But when I try
that, I get an error that I can't use a System::String^ as a global or... more >>
Passing const objects as arguments to function or return types
Posted by Subodh at 8/28/2007 10:29:01 AM
Hi All,
In C++ we could pass a constant reference to a function so that the
target function could not modify the objects passed
eg. const classA & dummmyfunction(const classB)
similar thing was valid for objects passed with pointer to constant
objects
In C++/CLI is there any way for imita... more >>
C++, C, C#, .NET, and an API
Posted by Hendrik Schober at 8/28/2007 12:00:00 AM
Hi,
we have a few libraries programmed in C++ which are
accessible through C APIs. (There's a C++ API wrapping
around one of those C APIs, if that helps.) These are
well tested and work for quite a few customers. Now we
start getting requests for a C# API. Being a dedicated
cross-platform sh... more >>
Windows service with timer on VISTA is not working
Posted by Ramesh at 8/22/2007 4:46:02 PM
Hi,
I've written one simple windows service using .NET 2003 with Timer. When I
install the service on Win XP it works as expected, but on Vista I can see
the service getting installed but Timer is not working.
Please HELP.... more >>
What is a Bitmap
Posted by \ at 8/19/2007 9:35:23 PM
I trying to learn what a Bitmap is. Not a Managed Bitmap Object but one
that, for example, comes from the clipboard with CF_BITMAP.
I'm guessing that a CompatableBitmap is an array of indices that point to
the colors in a Palette of the display driver.
So if I get a bitmap via CF_BITMAP I ... more >>
Multi-level namespace?
Posted by Cat at 8/19/2007 8:32:22 AM
In C#, this is legal
namespace MyNamespace.MyApp
{
}
But when I did that in VC++, it didn't compile.
I had to change it to
namespace MyNamespace
{
namespace MyApp
{
}
}
If the level is more than two, it gets really nasty. Why can't I do it
the way I do in C#?
... more >>
best memory allocation function for dealing with large (possibly in the 100s of MBs) byte arrays?
Posted by Jonathan Wilson at 8/18/2007 8:17:33 PM
I am working on some software which has to deal with data that could be as
large as 500mb or so. Currently I am using new[] and delete[] to manage
this memory but I find it is not ideal and sometimes gives out of memory
errors if I open one large data item then free that data item then another... more >>
cl command for lint/splint
Posted by one2001boy NO[at]SPAM yahoo.com at 8/18/2007 7:54:07 AM
Hello,
gnu g++ offers something similar to lint/splint for statically checking
C programs with the following command:
g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast
-Woverloaded-virtual -pedantic -Os -fno-exceptions -c
does cl.exe in windows offer something similar?
Thanks.... more >>
generics method?
Posted by vcquestions at 8/18/2007 4:25:23 AM
What's the best approch to having a common method that takes a
collection ( List<> ), goes through its elements and deletes them.
public ref struct Struct1
{
public:
Struct1( );
~Struct1( );
};
public ref struct Struct2
{
public:
Struct2( );
~Struct2( );
};
... more >>
Interlocked methods documentation have bad C++/CLI examples
Posted by Ben Voigt [C++ MVP] at 8/17/2007 2:59:26 PM
Please validate:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=293850
... more >>
Accessing C++ #defines and typedefs in a .NET project
Posted by TheCuriousOne at 8/17/2007 2:53:22 PM
I have this situation where I need to access the #defines and typedefs
defined in a C++ header file from a .NET Project (specifically C#). The C++
header file is from a medical device manufacturer which my software needs to
communicate with.
How can I do this?
Please let me know if you n... more >>
Wierd problem with VS2003&vista
Posted by Ismo Salonen at 8/16/2007 3:23:03 PM
I've got code that works when started normally (explorer, command
whatever) but fails when started from VS2003. It crashes in different
place when started with debugging (F5) and other place when started
without debugging ( CTRL+F5).
The same code works correctly on W2K/W2K3/XP. All modules ... more >>
header and code files structure
Posted by tomb at 8/16/2007 8:19:55 AM
I had originally posted this to the comp.lang.C++.moderated group, and
was advised to bring this question here.
I haven't used C++ in quite a few years, and that was when I was
learning and made only console applications, but I remember the .h files
only had the function declarations, and th... more >>
Using C++/CLI class from VB
Posted by maz at 8/16/2007 2:14:02 AM
Hi,
I need to access methods from a C++/CLI class in VB.NET .
How can I do that?
Is should be something along the lines of "registering" the C++
program with the .NET framework and then probably adding a reference
to it from my VB code... But I'm not sure how I can do it and I don't
have... more >>
Beginner C++/CLI questions
Posted by Nick at 8/15/2007 2:54:00 PM
Hello,
I've got what I'm sure are some dumb questions. I've got some existing C++
code that I want to move to a C++/CLI assembly to make it easier to use in a
..NET app as well as continuing to use it in an existing C++ app. It's simple
code, but I'm not sure if I'm setting up my function d... more >>
My Hello World failed!
Posted by Anil Gupte at 8/15/2007 12:56:13 AM
I have never been so embarassed! :-) I have played with C++, and even
created a few simple programs, but decided to learn it properly. So I crack
a book, get into Visual Studio and follow the instructions to create the
following program:
// HelloWorld.cpp : Defines the entry point for the... more >>
converting string in enum !!!
Posted by Harald at 8/14/2007 2:31:09 PM
Hi, sorry if this is not the best group for this...
In C# I have string values that correspond to enum member names. I need a
conversion from the string value to the corresponding enum value - if
possible without a big switch comparing the string with all their enum
string literal represent... more >>
Microsoft make brain bleed
Posted by jeff.sharkfinn NO[at]SPAM gmail.com at 8/14/2007 12:00:00 AM
I'm trying to create a pointer to a class in form1.h button1 event
handler. It should be simple... but no. This example is as simple as I
can make:
Form1.h (produced with the designer containing a single button)
**********************************************************************************... more >>
407 Proxy Authentication Required - Not using a Proxy
Posted by gallan at 8/13/2007 8:52:03 PM
We have an application that is running fine on several of our customer’s
servers. However, one of our customers is having a problem running the
application. The application works on one of his Windows 2003 servers, but
not on the other one.
The application is a C++ .Net /clr Windows Ser... more >>
how to fix error: missing ';' before identifier 'lpSurf'
Posted by P2P at 8/13/2007 12:00:00 AM
Hi all,
I build my project on VS 2005 and get this error:
c:\dx90sdk\include\strmif.h(27392) : error C2146: syntax error : missing ';'
before identifier 'lpSurf'
can you help me how to fix this?
Thanks for any help.
... more >>
Capturing Global Mouse and Keyboard Events
Posted by wbyeats at 8/12/2007 9:42:58 PM
Hi,
I would like to enable my VC++ application to capture general mouse
and keyboard events (click, double-click, key press) that occur
outside of my application's frame (eg. clicking inside the frame of
another application). I'm quite sure this is possible, but I don't
know how to do it. A... more >>
changing all int to int64
Posted by Abubakar at 8/12/2007 8:16:00 PM
Hi,
the project we are working on uses "int" for all integral type data (i have
also declared size_t at some places where crt functions return size_t type).
Now our application has to deal with files larger than 4gb. Typical places
where my code will have to deal with more than 4gb data/figur... more >>
Moving interface & enum from IDL to C++/CLI
Posted by Cartoper at 8/12/2007 12:07:41 PM
I am working on a project that currently has some interfaces and enums
defined in an IDL file. The sole implementor of these interfaces are
now in C++ CLI, but I still have consumers that are in unmanaged C++.
I would like to move the interface and enum definitions to the C++ CLI
code, but I ca... more >>
COM problems
Posted by dragonslayer008 NO[at]SPAM hotmail.com at 8/12/2007 11:13:36 AM
I am trying to initialize Direct3D 9 in a C++/CLR application.
However, the create device function gives me a compilation error:
error C2664: 'IDirect3D9::CreateDevice' : cannot convert parameter 6
from 'cli::interior_ptr<Type>' to 'IDirect3DDevice9 **'
1> with
1> [
1> Type=IDirect3DDevice9 ... more >>
Windows Media Player 11
Posted by slowspeed at 8/12/2007 9:34:00 AM
My WMP 11 was working just fine, then the automatic security updates
installed KB835935. Media Player now stops playing audio and closes down
after a few seconds. I did a sys restore, didn't help. I uninstalled
KB835935, that didn't work either. I uninstalled a few programs that KB info
... more >>
Mixed assemblies and enhanced instruction set
Posted by Andrea Sansottera at 8/11/2007 8:02:40 AM
I'm using Visual C++ Express 2005. I get an error when I try to
compile code with both /arch:SSE and /clr options.
cl : Command line error D8016 : '/arch:SSE' and '/clr' command-line
options are incompatible
Why is happening? According to the documentation it should be possible
(of course S... more >>
Unresolved token ERROR
Posted by jazihak NO[at]SPAM gmail.com at 8/10/2007 9:38:55 PM
Can any one tell me how to resolve this issue;
I have the following function
//hello.cpp
#include "stdafx.h"
#include <stdlib.h>
#include <vcclr.h>
#include <string>
namespace Wrapper
{
String^ Wrapper_Class::sayHello(void){
String^ str="Hello";
return str;
}
}
//hello.h
#prag... more >>
mixing COM and C++ in same library
Posted by root NO[at]SPAM yourbox.com at 8/10/2007 12:00:00 AM
Is it possible to have a project that has COM classes as well as ANSI
C++ classes in the same project (i.e. Dll) ?... more >>
Could not load Assembly
Posted by Doctorslicer at 8/9/2007 2:51:35 PM
Hi All,
We have a large multi project application in MFC that we are
converting to managed code. We have been able to add /CLR to all of
the projects and have compiled successfully but encounter an exception
when loading one of our Extension DLL's.
'OurApp.exe' (Managed): Loaded '...\Debug\... more >>
Is there some guideline for the CLI wrapper for C++ code?
Posted by Ed at 8/9/2007 9:57:44 AM
Hello, dear all,
CLI/C++ and C++ have many common things and differences. If I want to
porting or wrapper some API from C++ code to CLI, I wonder is there
some good rules or proposal to make the this more reliable.
Is seems there are not such this document posted in the web yet.
... more >>
Convert Multiple Derived Class into CLI/C++
Posted by Ed at 8/9/2007 2:31:40 AM
Hi, dear all,
Now there is a issue to convert C++ into CLI/C++. But there is a issue
block me.
Say Class MN is multiple derived from class MM and NN. But the CLI
only allow single class derived.
My understanding is to create a new interface INN with same method
declaration with class NN.
... more >>
how to fix: Cannot open include file: 'winsock6.h'
Posted by P2P at 8/9/2007 12:00:00 AM
Hi All,
i did compile my project on VC 6 without winsock6.h problem
but if i port to VC2005 then i get this error when compile: Cannot open
include file: 'winsock6.h':
In Tool->Option->VC++ Directories-> Include Files of VC2005 , i added:
$(VCInstallDir)PlatformSDK\include
and
D:\Prog... more >>
Newbie to .NET VC
Posted by Boki at 8/8/2007 11:35:34 PM
Hi All,
Newbie to .NET VC, I have little experience to use VC6. ( WIN32 , not
MFC )
Is MFC still existed in .NET ?
Tell the truth, I have same problem when first time to use VC6, I
don't know where should I add my code...., is it the same as Form_load
(),
by the way, the architecture ... more >>
how to fix error C2872: 'IXMLDOMDocumentPtr' : ambiguous symbol
Posted by P2P at 8/8/2007 12:00:00 AM
Hi all,
I have a project that compile without error on VC 6 (XP Pro service pack 2 )
but when i port to VC 8 (2005) then have error during compile as below:
//--------------------------------------------------------------------------------------
Compiling...
Myfiles.cpp
D:\vs2005\Myproject\... more >>
Beginner question: Symbols not loaded
Posted by Gernot Frieslinger at 8/7/2007 11:50:12 PM
Hi all!
I am a beginner to C++ DotNet and I would like to ask what "Symbols not
loaded" means and how to solve this problem.
Thank you very much.
Gernot... more >>
CLI Reference Parameter used for CSharp
Posted by Ed at 8/7/2007 7:20:48 PM
Hi, dear all,
Here are some questions when I was writing CLI code, which would be
used by C# Project.
1. Reference Parameter
If CLI method have % reference type parameter, which is ref class,
could C Sharp use it?
In CLI code:
ClassA::SetB(ClassB% classB);
In CSharp:
ClassA clas... more >>
Excel dependent on .Net Framework Runtime?
Posted by George at 8/7/2007 4:54:16 AM
Hello everyone,
I am wondering whether Microsoft Excel 2003 is a native application or
dependent on any .Net Framework Runtime, like 1.1, 2.0 or 3.0?
How about Microsoft Excel 2007?
thanks in advance,
George... more >>
Enable/Disable USB drive
Posted by Sharda at 8/7/2007 4:31:06 AM
Hi,
I want to Enable/Disable USB drive programatically.
I dont to use devcon.exe.
If anyone knows some API please tell me.
Thanks in advance.
--
Sharda
------------------------------------------------------------------------
Posted via http://www.codecomments.com
-------------... more >>
|