|
Thank You
But how can I bind this class into my project?
It throws the following errors...
Error 1 error C2955: 'cli::array' : use of class template requires template argument list
-- modified at 3:33 Wednesday 28th December, 2005
|
|
|
|
|
Oops, I forgot to check the "Do not treat < as tags" checkbox. The post should look like
"Use the array template (or generic, I don't know) class."
array<byte> ^buffer = gcnew array<byte>[10];
Regards
Senthil
_____________________________
<font face="Verdana" size=1><a href="http://blogs.wdevs.com/senthilkumar">My Blog</a> | <a href = "http://www.codeproject.com/script/articles/list_articles.asp?userid=492196">My Articles</a> | <a href = "http://geocities.com/win_macro">WinMacro</a></font>
|
|
|
|
|
By using this following error...
<code>
array<byte> ^buffer = gcnew array<byte>[1024];
</code>
Error 1 error C2065: 'byte' : undeclared identifier
Error 2 error C2728: 'cli::array' : a native array cannot contain this managed type
Error 3 error C2512: 'cli::array<Type,dimension>::array' : no appropriate default constructor available
c++ is a little bit stranger then #
-- modified at 3:49 Wednesday 28th December, 2005
|
|
|
|
|
|
|
OK, I have been developing an interface for editing records in our database.
I want to set it up as a control that I can use in other applications I
build. I am using databinding to tie the fields to my controls, such as
labels and textboxes.
I can create a solution for a stand alone application that runs like I want,
but whenever I create a solution for a control, then none of my data shows
up. I have tried making C++ controls (the language I am familiar with) and
VB and even C#. I get the same result: The interface compiles and displays
as designed, but no data.
When I add the control to the toolbox, I get the control plus a dataset and
adapter, but no databinding control.
|
|
|
|
|
Can anyone point me to any articles regarding creating user controls in managed C++? I am interested in reading about how to "subclass" the controls in C++ .NET so they have custom appearance/behavior. I've tried googling but either there is very little out there or I am googling the wrong keywords.
Thanks
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
dear all,
I have a code in c++. I need to convert the whole project to c. Is it possibe to convert give me the tips for conversion. I will be pleased if there are any tools available for conversion.
regards,
krushna kumar.v
|
|
|
|
|
|
look for the CFRONT compiler. It is the "original" C++ compiler which first converted C++ to C. Google for CFRONT
|
|
|
|
|
Hi, In the description of SetWindowText(), it states that "it cannot change the text of a control in another application." Anyone know what will do this, given the handle of the window has been enumerated ?
Doug
|
|
|
|
|
DougButtimer wrote: Anyone know what will do this, given the handle of the window has been enumerated ?
WM_SETTEXT message
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Accidently double posted !! Thanks - all sorted !
Doug
|
|
|
|
|
Suppose I have a:
char txt[80];
which holds '1','2','3',' ','4','5','6',' ','7','8';
now I declare 3 ints:
int 1st, 2nd, 3rd;
I want to put into them as follows: 1st==123, 2nd==456, 3rd==78, but the length of each number can be different, eg. txt may also hold: '1',' ','3',' ','5','5','5'
Could you please help me?
thank you in advance
|
|
|
|
|
This is an old-fashioned solution, but try this:
char txt[80];
int first,second,third;
sscanf(txt,"%d %d %d",&first,&second,&third);
Software Zen: delete this; // <a href="http://www.codeproject.com/script/profile/whos_who.asp?msg=1307432&id=10338#xx1307432xx" rel="nofollow">Fold With Us!</a>[<a href="http://www.codeproject.com/script/profile/whos_who.asp?msg=1307432&id=10338#xx1307432xx" target="_blank" rel="nofollow" title="New Window">^</a>]
|
|
|
|
|
hi,
i am writing an application where i want to authenticate the password.
I wan that when user type his password , nothing should be echoed on the screen.
plz help me out
|
|
|
|
|
Did you intend this:-
when the user types something, the characters shouldn't appear?
If yes, then ES_PASSWORD style with the edit control is what you are after.
Vipin - MVP
|
|
|
|
|
hi friend ,
A small program for u.
if u try following program it will display strick when u type password and after passsword press Enter and u can see the password there ....... i think u got an idea to program about passsword if than plz mail so that i can understant that u got it ...
bye
Sudip Lama
//Program about the Password ///
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();char name[20];
cout<<"Enter the password"<
|
|
|
|
|
Hi my problem is that i have an VB.NET application and i call an opengl dll MFC application which creates a grafic window and i want when i click on the VB.NET window my opengl window being always on top and not to go in the background, does anyone have any idea?....
Thanks for ur time??
giotis
|
|
|
|
|
Try this
SetWindowPos(&this->wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
|
|
|
|
|
Thanks u for ur reply,i put it in the class where this window created,but it show me errors like there r few arguments and it can't recognize "this", one more question:how can i get the hwnd of my window? In msdn i look for the setwindowpos and and i realise that i need this...
if u have time please answer me.....!!!!
Thanks
giotis
|
|
|
|
|
I have recently installed fresh windows and curently i can't check if it is correct, but i think it is GetActiveWindows or FindWindow
|
|
|
|
|
Thanks one more time, maybe i m wrong but i create my opengl window with glutCreateWindow and everything was created with glut expresions, it creates an int type window and i can't convert it to HWND, is there any other way to make it topmost or to make an notopmost my vb.net window?...
giotis
|
|
|
|
|
Hello.
I thing the HWND is a LONG INT, but hwnd is used in c++ not in VB. "this" is a pointer used in C++ and in C#.
|
|
|
|
|