all groups > visual c > may 2005 > threads for may 1 - 7, 2005
Filter by week: 1 2 3 4 5
New C++/CLI draft
Posted by Ioannis Vranos at 5/7/2005 12:00:00 AM
I just saw that C++/CLI 1.12 is available today:
http://www.plumhall.com/C++-CLI%20draft%201.12.pdf... more >>
DataGrids and BindingContext
Posted by John Celmer at 5/6/2005 11:33:08 PM
Can someone please help me with my code. I have a datasetX with two tables,
tableA and tableB in the datasetX. The tables have a DataRelation named
A_B_Relation. How can I get the BindingManagerBase to be a Currency Manager
so that I can get the current position when there is movement in da... more >>
Assign a Unique ID to a Win Forms Control
Posted by John E Katich at 5/6/2005 5:49:04 PM
How do I assign a unique Id (like WM_USER+nnn) to a control?
... more >>
Using UpdateResource() to add a resource
Posted by Klaatu at 5/6/2005 11:44:05 AM
I've seen plenty of examples of updating a resource using UpdateResource().
Has anyone actually used it to add a new resource? For example, a menu
resource. If so, how is it done? I'm not quit sure how to present the raw
data.
--
Gort, Klaatu, Barrada Nikto...... more >>
C++/CLI array in struct
Posted by GrkEngineer at 5/6/2005 10:58:09 AM
I recently had to use someone's struct from a native app to receive data over
Udp. The struct has a array member which looked like this:
struct sensorHdr{
char sName[64];
};
When I tried to make this a managed struct by adding either the value struct
or ref struct I received a comp... more >>
Microsoft Document Explorer - VC++ 2005
Posted by John Gabriel at 5/6/2005 9:06:01 AM
The *back* and *forward* butttons do not work. Anyone noticed this?
I know this is a beta edition but even for a beta edition, it's hard to
believe
Microsoft performed any real quality control.... *Help* is pretty important.
The help feature topics are very badly organized. There is ambigu... more >>
#Include Question
Posted by superchief at 5/6/2005 6:08:05 AM
I have a simple vc++ win32 program. I have one header that has a list of all
the other header files in it. In each of the .cpp files i make a referance to
this main header. is there a way of getting around this, so i only have to
make one header (listing all the includes i ever would like in t... more >>
Linking error when using multiple forms and #include<afxinet.h>
Posted by Marcelo at 5/6/2005 4:59:38 AM
Hello!
I am developping a Visual C++ .NET multiple forms application, which
uses FTP connection. When I use more than one form, and include the
<afxinet.h> library (necessary for FTP connection), the linker errors
occur:
error LNK2005: "void * __cdecl operator new(unsigned
int)"(??2@YAPAXI@Z... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Share data between different dlls
Posted by Rich at 5/6/2005 2:06:06 AM
Hi there,
For a quite big application, I need to get large amount of data within a
static library (xxx.lib) and put them in a database (a class, say we call it
CData), and then make it accessible by a few different dynamic library files
(yyy.dll, …). I’ve tried to create a global class ... more >>
BYTE* to BSTR
Posted by EdInPhoenix at 5/5/2005 8:45:34 PM
Hi All,
I'm not a c++ programmer, but I find myself writing an extended stored
procedure to call a web service. I got this part working.
I want to pass parameters through the extended proc on to the web service.
The params come in through a BYTE* param in here (pData):
srv_paraminfo(pSrv... more >>
VC++ 2005 (Express Beta Edition) Build/Rebuild
Posted by John Gabriel at 5/5/2005 3:44:03 PM
I have been obtaining the following error in the output window of the IDE:
1>mt.exe:general error c101008d:Failed to write the updated manifest to the
resource of file "..\debug\test.exe". The process cannot access the file
because it is being used by another process. 1>Project : error PRJ000... more >>
c2491 error
Posted by mschmitz at 5/5/2005 2:54:03 PM
Im trying to update some code from VC 6.0 to .net 03.
While building i get the c2491 error (definition of dllimport function
not allowed), which i have seen posted on here but havent found a
solution to.
Does this mean i can only delcare a dllimport function and NEVER define
it? What is t... more >>
Wildcard seaching in a string array.
Posted by Murthy at 5/5/2005 5:50:09 AM
Please suggest me a way to search for strings with wildcards in an array of
character strings.
... more >>
Internal Complier Error in Visual C++ 1.52
Posted by Sen at 5/5/2005 2:38:02 AM
Hi All,
I am using (Visual C++ 1.52 IDE )for my MFC Application Project. I am
working on an existing code base where the no of lines is around 100,000,
spread across different header and cpp files. when i was trying to add a new
function declaration for an existing class in a header file an... more >>
static keyword in non-class functions?
Posted by Egbert Nierop (MVP for IIS) at 5/5/2005 12:00:00 AM
Hi,
Why do I need to define a function as static (inside a .h file) to avoid the
following linker error?
CSession error LNK2005: "void __stdcall AllocString(unsigned short *
*,unsigned int)" (?AllocString@@YGXPAPAGI@Z) already defined in stdafx.obj
I know that the MSDN talks about this,... more >>
Dynamically load assembly
Posted by Boni at 5/5/2005 12:00:00 AM
Dear Sirs,
If I dynamically load assembly into the memory by Load(byte[]) how long do I
have to preserve the array valid? Can it be destructed just after the load
call?
Thanks in advance,
Boni
... more >>
how to delete contents of an existing file using vc++
Posted by wayne at 5/4/2005 11:17:47 PM
Dear all,
may i know how can i delete the contents of an existing file using
vc++?? also, i would like to know how can i delete the whole file?
thanks alot
wayne
--
wayne
------------------------------------------------------------------------
Posted via http://www.codecomments.... more >>
Background color of TextBox control
Posted by Steve at 5/4/2005 2:29:23 PM
I have windows form with the few TextBox controls.
Under certain conditions I disable or enable this controls by setting Enable
property to true or false: For example:
this.m_txtIP.Enabled = false ;
The controller become disabled, and I can't enter any data. The problem is
that the backgr... more >>
How turn off memory leak dumping?
Posted by noleander at 5/4/2005 10:16:04 AM
My Vis C++ program takes forever to exit. Reason: it is dumping potential
memory leaks. I like finding leaks once a month, but not every time I run.
How do I turn mem leak dumping off?
I looked in help, and it said leak dumping is enabled with #define
CRTDBG_MAP_ALLOC ... but I do not ha... more >>
String concatination
Posted by Boni at 5/4/2005 12:00:00 AM
Hi all,
String *A="kkkj"
String *B="kkkj"
Is there something easier then
String *C=String::Concat(A,B)
Why can't it just be as in C# C=A+B.
Thanks,
Boni
... more >>
Array of class and a pointer to it
Posted by Eitan at 5/3/2005 5:13:03 PM
Hello,
I defined a class name MyClass.
I would like to define an array of 4 by 8 of that class.
I would like to define a pointer to the array of MyClass.
I tried it with static definition:
MyClass m_MyClass[4][8] ;
I can not seem to find the way to define a pointer to this array?!?!?
... more >>
Is there equivalent of sscanf function in .NET?
Posted by Steve at 5/3/2005 2:22:02 PM
Is there equivalent of sscanf function in .NET?
I need to parse string with network MAC address (For example like
11-22-33-44-55-66) and extract each segment into array of bytes.
Can anyone advise what method/class I can use for that?
I've figured out how to parse IP address: IPAddress.Pa... more >>
Installation oddies with Beta 2 of languages
Posted by Dann Corbit at 5/3/2005 12:28:58 PM
Several fascinating problems have occurred with attemped installations of the
latest beta 2 versions of the .NET languages (including VC++).
mscorsvw.exe has been using 99% of my CPU for 17 hours. More than one
billion page faults have occurred. Here is an image of the Windows Task
Manage... more >>
Managed referencing non-managed and vice-versa
Posted by Ney_André_de_Mello_Zunino at 5/3/2005 5:13:55 AM
Hello.
I am developing a project in managed C++ for the first time. Things were
going fine up until the point I had the need to mix managed and
non-managed code. More specifically, what I am trying to have is a
MVC-like scheme, where the view is implemented using Windows Forms and
the mod... more >>
changing text color in edit box
Posted by wayne at 5/2/2005 11:02:26 PM
hi thatsalok,
bcos i m quite new to this forum. if possible may i request that u send
the program to my email pls...
my email addr is tbs_9@yahoo.com
thanks alot...
wayne
wayne wrote:
> *hi thatsalok
>
> thanks for the reply, but i cant find the attached Example u were
> mention... more >>
URGENT: ComCompatibleVersionAttribute does not work
Posted by Sai at 5/2/2005 2:22:47 PM
Hello everybody,
I am trying to use ComCompatibleVersionAttribute in my
assembly. But when i compile the tlb gets generated with
a new GUID. ComCompatibleVersionAttribute should help me
preserve my GUIDs compatible to the version i specify,
but it does not seem to work.
Please help. Th... more >>
Functions exported in C++ and global variables;
Posted by xbsantos at 5/2/2005 9:20:01 AM
Functions exported in C++ and global variables;
Hello,
I'm working with a DLL project in VISUAL C++ that exports one function with
the sentence
__declspec(dllexport). The problem is that this function returns the value
of a dll global
variable, but in fact the application that imports t... more >>
Multi dimensional arrays in C# and in C++
Posted by Hans at 5/2/2005 4:48:01 AM
I have encapsultated old C/C++ code in a mixed mode C++ module (Project 2).
In my C# app (project 3) I instanciate a managed C++ class. The behaviour of
the C/C++ class is defined by an interface (Project 1). I wanted to add a
getter property to a multi dimension array, but the assembly loader... more >>
STL in a Windows Forms app in VS 2005
Posted by Jürgen Devlieghere at 5/2/2005 12:00:00 AM
What are the options when keeping e.g. a list of objects in a windows forms
application?
The main form should be managed, since it derives from
System::Windows::Forms::Form
If this class needs also a list of other managed objects, one cannot use std
STL. The logical answer would be STL.NET... more >>
What is wrong with this appresolver
Posted by Boni at 5/2/2005 12:00:00 AM
Dear all,
please help me to find a right way of writing the resolver.
Thanks so much,
Boni
Assembly *XXX::ResolveMe(Object *sender, ResolveEventArgs *args){
...
}
//In Constructor
AppDomain* _ad= AppDomain::get_CurrentDomain()->AssemblyResolve += new
ResolveEventHandler(Res... more >>
use math constants in visual c++. net 2003
Posted by nvphu at 5/1/2005 8:50:01 PM
I need to use the constant M_PI. So, I insert the directive # include <math.h>.
However when compiled, there are errors : M_PI undeclared identifier.
Second, I can not use the function round(double x).
Anyone could be so kind to help me.
Thanks a lot
... more >>
How to transfer a memory block(not pointer) between two threads
Posted by jiing at 5/1/2005 8:03:10 PM
Now I am try to transfer a memory pointer between two threads.
but there has a error mesage.
_CrtIsValidHeapPointer(pUserData) in dbgheap.c
I lookup google and find it's seems to be the local heap in the two
threads are different. so their memory that pointer point to are
different.
I wa... more >>
Program Help
Posted by gonzal51 at 5/1/2005 7:43:53 PM
Hi, I'm a student learning C++ and my professor isn't much help, her view is
if you dont get it I ain't helping you....
We are supposed to do a basic program as a logon system. I got as far as I
could and came up with some errors I could not understand.
Any Help would be appreciated.
Us... more >>
|