|
Hi,
I have 2 LAN's and both have diffrent ip classes. On both networks people use to chat on same software. but i cann't run that software for both networks.
how can i run 2 copies of same software.
|
|
|
|
|
Your question is not very clear. And in any case, this is not the correct forum for such questions. This should be posted in the Visual C++[^] forum. This is the C++/CLI forum that's dedicated to the new managed and mixed-mode compiler available in VC++ 2005.
|
|
|
|
|
I am trying to convert a program from C++ to MC++ and it uses the following type of class arrays. Can someone show me how I would convert this tp MC++.
Thanks in advance for your help.
GlobalVariables.cpp
#include CData
CData Data[100][10];
CData.h
CData Data
{
deque<float> data1;
int data2[20];
}
CData.cpp
x = Data[10][10].data1[1]+Data[10][10].data2[4];
|
|
|
|
|
I presume that you are using VC++ 2003. If that's correct, see my article on using arrays in MC++
Using managed arrays[^]
But, if you are using VC++ 2005 and the new C++/CLI syntax, see my C++/CLI article :-
Arrays in C++/CLI[^]
|
|
|
|
|
|
Wrong forum, Brian.
This announcement should be posted in the Visual C++[^] forum. This is the C++/CLI forum that's dedicated to the new managed and mixed-mode compiler available in VC++ 2005.
|
|
|
|
|
Nishant Sivakumar wrote: Wrong forum, Brian.
My apologies. In an attempt to correct this action, I have removed my post from this forum.
Sincerely Yours,
Brian Hart
Department of Physics and Astronomy
University of California, Irvine
|
|
|
|
|
Brian Hart wrote: My apologies. In an attempt to correct this action, I have removed my post from this forum.
No worries
|
|
|
|
|
HI,
i want to call a hook function to a particular window . when the window is activated then hook function must be called. If the window is disabled then we have to unhook the keyboard.
PLZ iam trying for this from longtime...........
PLZ if let me know the solution to this with the help of you..........
pradpb999@gmail.com
pradeep kumar
|
|
|
|
|
This question should be posted in the Visual C++[^] forum. This is the C++/CLI forum that's dedicated to the new managed and mixed-mode compiler available in VC++ 2005.
|
|
|
|
|
hello folks!
I'm new in c++ and I'm trying to write a c++ jpeg edge detector for linux, but I have some problems with the pixel matrix that I must use to apply the prewitt mask...
can somebody help me? how can I get one pixel grey level? how can I copy this to a matrix?
Here is my code:
#include <iostream>
#include <cstring>
#include "pic_jpeg.h"
#include "gaussian_filtering.h"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char **argv)
{
PIC_JPEG jpg_in;
int dim_x,dim_y,d;
DYNAMIC *buffer_jpg_in;
int m_x, m_y ;
char nom_in[256];
sprintf(nom_in, argv[1]);
jpg_in.read(nom_in);
dim_x=jpg_in.getWidth();
dim_y=jpg_in.getHeight();
d=jpg_in.getDepth();
buffer_jpg_in=jpg_in.getBody();
DYNAMIC *m[512][512];
for(m_y=0; m_y<dim_y; m_y++){
for(m_x="0;" m_x<dim_x;="" m_x++){
m[m_y][m_x]="buffer_jpg_in;
}
}
fprintf(stdout,"(%d,%d,%d)\n",dim_x,dim_y,d);
PIC_JPEG" jpg_out(dim_x,dim_y,d);
dynamic="" *buffer_jpg_out;
buffer_jpg_out="jpg_out.getBody();
Gaussian_Filtering" filter(="" 4.0,="" buffer_jpg_in,="" buffer_jpg_out,="" dim_x,="" dim_y,="" d);
filter.xy_smoothing();
char="" nom_out[256];
sprintf(nom_out,="" "test_out_%s",nom_in);
jpg_out.write(nom_out,100);
="" return="" 1;
}
="" =="===========pic_jpeg
#ifndef" pic_jpeg_h
#define="" pic_jpeg_h
#include="" <iostream="">
extern "C" {
#include <string.h>
#include <stdio.h>
#include <jpeglib.h>
#include <setjmp.h>
}
#define IN(bi,bs,valeur) (((bi <= valeur) && (valeur <= bs)) ? 1 : 0)
#define DYNAMIC float
class PIC_JPEG
{
protected:
unsigned int height, width, depth;
DYNAMIC *body;
char *file_name;
int readJpeg(char *);
public:
static const unsigned int RED = 0;
static const unsigned int GREEN = 1;
static const unsigned int BLUE = 2;
static const unsigned int RGB_DEPTH = 3;
PIC_JPEG();
PIC_JPEG(const PIC_JPEG &i);
PIC_JPEG(int dx, int dy, int d);
PIC_JPEG(char *filename,DYNAMIC *buff,int dx,int dy,int d);
~PIC_JPEG();
unsigned int isLoaded() const;
unsigned int getWidth() const;
unsigned int getHeight() const;
unsigned int getDepth() const;
DYNAMIC *getBody() const; // Pas de copie
DYNAMIC &operator() (unsigned int x, unsigned int y, unsigned int d) const;
char *getFilename();
void clear();
void rescale(unsigned int w, unsigned int h);
int crop(unsigned int,unsigned int,unsigned int,unsigned int);
int read(char *filename);
int write(char *filename, int quality) const;
};
#endif
//=================gaussian filter
#ifndef GAUSSIAN_FILTERING_H
#define GAUSSIAN_FILTERING_H
#include <iostream>
#include "pic_jpeg.h" // pour DYNAMIC
class Gaussian_Filtering
{
protected :
float sigma;
DYNAMIC *buffer_in,*buffer_out;
int dim_x,dim_y,dim_z;
int depth;
int px,py,pz;
double pos_num_x[4],neg_num_x[4],den_x[4];
double pos_num_y[4],neg_num_y[4],den_y[4];
double pos_num_z[4],neg_num_z[4],den_z[4];
void init(DYNAMIC *,DYNAMIC *,int,int,int);
void coeff(int,float,double *,double *,double *);
void filtre(DYNAMIC *,int,double *,double *,double *);
DYNAMIC *extract_suite(DYNAMIC *,int,int,int);
void remplit(DYNAMIC *,DYNAMIC *,int,int,int);
int filter(float,int,int);
public :
// Initialisations
Gaussian_Filtering(float s);
void setBuffers(DYNAMIC *b1,DYNAMIC *b2,int nb_col,int nb_lig,int d);
void setBuffers(DYNAMIC *b1,DYNAMIC *b2,int nb_col,int nb_lig);
Gaussian_Filtering(float s,DYNAMIC *b_in,DYNAMIC *b_out,int nb_col,int nb_lig,int d);
Gaussian_Filtering(float s,DYNAMIC *b_in,DYNAMIC *b_out,int nb_col,int nb_lig);
// Les outils de filtrage
void xy_smoothing(); // lissage en x et y
void x_derivative(); // derivee 1ere en x lissage en y
void xx_derivative(); // derivee 2eme en x lissage en y
void xxx_derivative(); // derivee 3eme en x lissage en y
void y_derivative(); // derivee 1ere en y lissage en x
void yy_derivative(); // derivee 2eme en y lissage en x
void yyy_derivative(); // derivee 3eme en y lissage en x
void xy_derivative(); // derivee 1ere en x derivee 1ere en y
void xxy_derivative(); // derivee 2eme en y derivee 1ere en x
void xyy_derivative(); // derivee 2eme en x derivee 1ere en y
};
#endif
from paris
|
|
|
|
|
This question should be posted in the Visual C++[^] forum. This is the C++/CLI forum that's dedicated to the new managed and mixed-mode compiler available in VC++ 2005.
|
|
|
|
|
Hello,
Can I use the Windows Image Acquisition automation layer with MC++? I have looked for an answer everywhere, but could not find one. If the answer is yes, does anyone know of any good tutorials for MC++ and WIA?
Thanks, Roy
|
|
|
|
|
found it out -> yes it can here is a sample of the code to setup a webcam...
//Main Windows Image Acquisition Variables
WiaVideoClass* wiaVideo = new WiaVideoClass();
ItemClass* item;
String* selectedID;
WiaClass* wiaManager = new WiaClass();
CollectionClass* wiaObjects;
//Device specific variables
Object* device;
String* devName; //holds the name of the device
* * *
//Finds the WIA device
for(int i = 0; i < wiaManager->Devices->Count; i++)
{
//loads the wia information from the devices in the wiaManager into wiaObjects so the
// devices can be accessed
wiaObjects = dynamic_cast<collectionclass*>(wiaManager->Devices);
//accesses one of the wia deceives in the wiaObjects variable
device = wiaObjects->get_Item(i);
//passes the device by reference to wiaManager to create the WIA item
// this return value of the created item is type casted from ItemClass to item
item = dynamic_cast<itemclass*>(wiaManager->Create(&device));
//gets the device info in the object datatype and returns it, it is typecasted to a string
selectedID = dynamic_cast<string*>(item->GetPropById( (WiaItemPropertyId) WiaDeviceInfoPropertyId::DeviceInfoDevId ));
//get the webcam name
devName = dynamic_cast<string*>(item->GetPropById( (WiaItemPropertyId) WiaDeviceInfoPropertyId::DeviceInfoDevName ));
}
//some standard error messages / protection from crashing
if(selectedID == "")
{
//problem
}
else
{
//no problem
}
-- modified at 19:48 Thursday 29th December, 2005
i forgot, make sure you reference the window image acquisition com and the wia video com too
|
|
|
|
|
I am just starting to learn C++ and I need help with line code that will produce an animated bitmap. I've tried several tutorials from this website and none of them would even compile. I'm using the free BloodShed Dev-C++ Version 4.9.9.0 that I downloaded from www.download.com
I'm into learning not stealing, so if you have a little time to show me a few genereic codes that I can use that would be great.
wow. this is the coolest of the cool.....est.
|
|
|
|
|
adamx20 wrote: I'm using the free BloodShed Dev-C++ Version 4.9.9.0 that I downloaded from www.download.com
Does BLOODSHED support MFC.
I think only SDK is supported by Blood.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I have loaded image (DDB) using GDI funcs and ZOOMING in and out using stretchblt funcn with memory as source and window screen as destination. while zooming in i am invalidating the screen area with third param set as false and hence able to achieve flicker free image but how to do low flicker (if possible no flicker ) for zoom out.
also please tell me if i can directly write on to the vdu buffer and freeze the client area until the write on buffer is complete
Thankyou
nothing is illegal until you are caught
nothing is illegal until you are caught
|
|
|
|
|
I use VS NET 2003 and loading windows form app for debugging is so slow compared to just fo example VC++ MFC apps, moreover if you while debugging and single steping thru the code inadvertantly point mouse pointer to Form->Text to find out what's the caption it hangs itself down completely?
This is the process for loading dll's after being pressed F5:
Does it really needs so many dll's?
'Cmpl.exe': Loaded 'C:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\Cmpl\Debug\Cmpl.exe', Symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\entapi.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded.
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\entapi.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\netapi32.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\psapi.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\user32.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\gdi32.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\msvcrt.dll'
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll', Symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c561934e089_78ef5e8c\mscorlib.dll', No symbols loaded.
>> after this point it spends about 3-4 secs doing nothing?
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll', No symbols loaded.
'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', No symbols loaded.
'Cmpl': Loaded 'c:\documents and settings\yc274\my documents\visual studio projects\compl\cmpl\debug\Cmpl.exe', Symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\GAC\System.Windows.Forms\1.0.5000.0__b77a5c561934e089\System.Windows.Forms.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\System.Windows.Forms\1.0.5000.0__b77a5c561934e089_c49e1905\System.Windows.Forms.dll', No symbols loaded.
'Cmpl.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\GAC\System\1.0.5000.0__b77a5c561934e089\System.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\System\1.0.5000.0__b77a5c561934e089_6748d04f\System.dll', No symbols loaded.
'Cmpl.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\GAC\System.Drawing\1.0.5000.0__b03f5f7f11d50a3a\System.Drawing.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\System.Drawing\1.0.5000.0__b03f5f7f11d50a3a_15cde53a\System.Drawing.dll', No symbols loaded.
'Cmpl.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\GdiPlus.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\mslbui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\cscui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\cscdll.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\browseui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\ntshrui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\atl.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\userenv.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\shdocvw.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\cryptui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\wininet.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\riched20.dll', No symbols loaded.
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\riched20.dll'
'Cmpl.exe': Loaded 'C:\WINDOWS\LvHook.dll', No symbols loaded.
The thread 'Win32 Thread' (0xa90) has exited with code 0 (0x0).
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', No symbols loaded.
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\shdocvw.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\cryptui.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\wldap32.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\wininet.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\wintrust.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\imagehlp.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\crypt32.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\msasn1.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\browseui.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\cscui.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\cscdll.dll'
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\browseui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\shdocvw.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\cryptui.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\wininet.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', No symbols loaded.
'Cmpl.exe': Loaded 'C:\WINDOWS\system32\riched20.dll', No symbols loaded.
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\riched20.dll'
'Cmpl.exe': Unloaded 'C:\WINDOWS\system32\dciman32.dll'
The thread 'Win32 Thread' (0x764) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2fc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xbd8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xc8c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x650) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xcb8) has exited with code 0 (0x0).
The program '[1460] Cmpl.exe' has exited with code 0 (0x0).
The program '[1460] Cmpl.exe: Native' has exited with code 0 (0x0).
9ine
|
|
|
|
|
9ine wrote: I use VS NET 2003 and loading windows form app for debugging is so slow compared to just fo example VC++ MFC apps
Yes it is Slow. In Visual Studio 2005 is a lot faster.
9ine wrote: This is the process for loading dll's after being pressed F5:
Does it really needs so many dll's?
Yes it does. All dlls are connected.
9ine wrote: I use VS NET 2003 and loading windows form app for debugging is so slow compared to just fo example VC++ MFC apps, moreover if you while debugging and single steping thru the code inadvertantly point mouse pointer to Form->Text to find out what's the caption it hangs itself down completely?
It shoud be: this->Text
|
|
|
|
|
Thanks, but I change form caption in thread to which I pass pointer of the form created it.
So in VS2005 it is loaded as faster as normal mfc projects in VS2003?
9ine
|
|
|
|
|
9ine wrote: So in VS2005 it is loaded as faster as normal mfc projects in VS2003?
I have old computer, so i don't know if it is that fast, but comparet MC++ built by VS2003 and VS2005. When i try to run in debugging VS2003 took me about 30 sec, in VS2005 took me abaout 2-6 sec.
If you only try to run, then you can press CTRL+F5
|
|
|
|
|
HI,
I want to disable the MS OFFICE File Menu options and Tollbar Buttons
by using WINDOWS API's..?
We can do this by using MS OFFICE libraries, but i want do using WINDOWS API's.
IS IT POSSIBLE..?
If so PLZ send reply to : pradpb999@gmail.com
pradeep kumar
|
|
|
|
|
Hi
I try to deepen my knowledge in Visual C++.net..
Up to now I'm always using c#.
So I try to port a C# application to Visual C++.net.
But it break down on a Byte Array.. In c#... no problem..
Here a little bit from the # App..
<br />
byte[] buffer = new byte[1024];<br />
<br />
for(int x = 0; x < 6; x++)<br />
{<br />
buffer[count++] = 0xFF;<br />
}<br />
<br />
for(int i = 0; i < 16; i++)<br />
{<br />
int tmp = 0;<br />
<br />
for(int y = 0; y < 6; y++)<br />
{<br />
buffer[count++] = Byte.Parse(mac.Substring(tmp,2),System.Globalization.NumberStyles.HexNumber);<br />
tmp = tmp+2;<br />
}<br />
}<br />
<br />
client.Send(buffer,1024);<br />
And now the c++ complement..
<br />
<br />
<br />
for(int x = 0; x < 6; x++)<br />
{<br />
buffer[count++] = 0xFF;<br />
}<br />
<br />
for(int i = 0; i < 16; i++)<br />
{<br />
int tmp = 0;<br />
<br />
for(int y = 0; y < 6; y++)<br />
{<br />
buffer[count++] = Byte::Parse(mac->Substring(tmp,2),System::Globalization::NumberStyles::HexNumber);<br />
tmp = tmp+2;<br />
}<br />
}<br />
<br />
client->Send(buffer,1024);<br />
I don't know how to work with this array... I searched google for so long..
I know in Visual Studio 2005 there are some language alterations for c++..
|
|
|
|
|
Use the array template (or generic, I don't know) class.
array<byte> ^buffer = gcnew array<byte>();
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
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
|
|
|
|
|