Click here to Skip to main content
15,923,222 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
George L. Jackson5-Aug-07 13:24
George L. Jackson5-Aug-07 13:24 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
aefmaaradji6-Aug-07 0:52
aefmaaradji6-Aug-07 0:52 
QuestionHow to wrap native array? Pin
mid=57414-Aug-07 9:06
mid=57414-Aug-07 9:06 
AnswerRe: How to wrap native array? Pin
Luc Pattyn4-Aug-07 9:24
sitebuilderLuc Pattyn4-Aug-07 9:24 
GeneralRe: How to wrap native array? Pin
mid=57414-Aug-07 9:30
mid=57414-Aug-07 9:30 
GeneralRe: How to wrap native array? Pin
Luc Pattyn4-Aug-07 10:03
sitebuilderLuc Pattyn4-Aug-07 10:03 
GeneralRe: How to wrap native array? Pin
mid=57414-Aug-07 10:38
mid=57414-Aug-07 10:38 
Questiontray icon query Pin
dona jain3-Aug-07 19:50
dona jain3-Aug-07 19:50 
i am not able to implement tray icon for my dialog boxt..can u provide me with some code...here's my code or a dialog box now i want to make a tray icon for this..please provide help in coding for this...thanks





//---------------------------------------------------------------------------
LPSTR lpString;
HWND hWnd;

LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
//---------------------------------------------------------------------------
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLGFIRST),hWnd, reinterpret_cast(DlgProc));
return FALSE;
}




//---------------------------------------------------------------------------
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
TCHAR cPath[20];
TCHAR cUserName[20];
TCHAR cPassword[20];
switch(Msg)
{
case WM_INITDIALOG:
{
return TRUE;
}

case WM_COMMAND:
{
switch(wParam)
{
case IDOK:
{
size_t nLen;
GetDlgItemText(hWndDlg, IDC_EDIT1, cPath, 20);
nLen = strlen(cPath);
if (nLen == 0)
{
MessageBox(hWndDlg,"Please Enter SVN Path","Error",MB_ICONERROR);
break;
}
GetDlgItemText(hWndDlg, IDC_EDIT2, cUserName, 20);
nLen = strlen(cUserName);
if (nLen == 0)
{
MessageBox(hWndDlg,"Please Enter your user name","Error",MB_ICONERROR);
break;
}
GetDlgItemText(hWndDlg, IDC_EDIT3, cPassword, 20);
nLen = strlen(cPath);
if (nLen == 0)
{
MessageBox(hWndDlg,"Please Enter your Password ","Error",MB_ICONERROR);
break;
}
EndDialog(hWndDlg, 0);
std::ofstream file ("config.txt");
file << " SVN Path entered by user is -> "<<cpath <<="" std::endl;
file="" "="" svn="" user="" name="" entered="" by="" -="">" <<cusername <<="" std::endl;
file="" "="" svn="" password="" entered="" by="" user="" -="">"<
AnswerRe: tray icon query Pin
Christian Graus3-Aug-07 21:22
protectorChristian Graus3-Aug-07 21:22 
AnswerRe: tray icon query Pin
Russell'3-Aug-07 22:05
Russell'3-Aug-07 22:05 
Questionconst keyword Pin
lavanya812-Aug-07 20:09
lavanya812-Aug-07 20:09 
AnswerRe: const keyword Pin
Christian Graus2-Aug-07 20:33
protectorChristian Graus2-Aug-07 20:33 
AnswerRe: const keyword Pin
Luc Pattyn2-Aug-07 20:50
sitebuilderLuc Pattyn2-Aug-07 20:50 
QuestionUniversal Character Names Pin
pourang2-Aug-07 13:12
pourang2-Aug-07 13:12 
AnswerRe: Universal Character Names Pin
Luc Pattyn2-Aug-07 20:58
sitebuilderLuc Pattyn2-Aug-07 20:58 
QuestionMultiple Checkbox Controls Pin
BuckBrown2-Aug-07 12:13
BuckBrown2-Aug-07 12:13 
AnswerRe: Multiple Checkbox Controls Pin
Luc Pattyn2-Aug-07 12:58
sitebuilderLuc Pattyn2-Aug-07 12:58 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown2-Aug-07 13:04
BuckBrown2-Aug-07 13:04 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 5:57
BuckBrown3-Aug-07 5:57 
GeneralRe: Multiple Checkbox Controls Pin
Luc Pattyn3-Aug-07 6:42
sitebuilderLuc Pattyn3-Aug-07 6:42 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 7:31
BuckBrown3-Aug-07 7:31 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 6:57
BuckBrown3-Aug-07 6:57 
GeneralRe: Multiple Checkbox Controls Pin
Luc Pattyn3-Aug-07 8:00
sitebuilderLuc Pattyn3-Aug-07 8:00 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 9:37
BuckBrown3-Aug-07 9:37 
GeneralRe: Multiple Checkbox Controls Pin
Luc Pattyn3-Aug-07 10:04
sitebuilderLuc Pattyn3-Aug-07 10:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.