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

Managed C++/CLI

 
AnswerRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' [modified] Pin
George L. Jackson7-Aug-07 15:05
George L. Jackson7-Aug-07 15:05 
QuestionEntry point of exe Pin
Nandu_77b7-Aug-07 2:09
Nandu_77b7-Aug-07 2:09 
AnswerRe: Entry point of exe Pin
Luc Pattyn7-Aug-07 2:42
sitebuilderLuc Pattyn7-Aug-07 2:42 
GeneralRe: Entry point of exe Pin
Nandu_77b9-Aug-07 4:52
Nandu_77b9-Aug-07 4:52 
QuestionDiff between array and list. Pin
Nandu_77b7-Aug-07 0:47
Nandu_77b7-Aug-07 0:47 
AnswerRe: Diff between array and list. Pin
Luc Pattyn7-Aug-07 1:39
sitebuilderLuc Pattyn7-Aug-07 1:39 
GeneralRe: Diff between array and list. Pin
Nandu_77b9-Aug-07 4:51
Nandu_77b9-Aug-07 4:51 
Questionminimizing dialog to system tray Pin
dona jain6-Aug-07 18:50
dona jain6-Aug-07 18:50 
i succeeded in making tray icon..bur how to minimize it to tray only when i click on minimize button.also after filling all three field which are asked and then when i press ok i want the dialog window to minimize to taskbar icon..please help me...my code is as follows:


#include <windows.h>
#include "resource.h"
#include <cstdlib>
#include<atlstr.h>
#include <fstream>
#include<iostream>
#include<string.h>
#include "FileOperation.h"
#include<stdio.h>
#define WM_ICON_NOTIFY WM_USER+1




//---------------------------------------------------------------------------
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>(DlgProc));
return FALSE;
}


//---------------------------------------------------------------------------
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{

char cPath[20];
char cUserName[20];
char cPassword[20];
switch(Msg)
{

case WM_INITDIALOG:
{
}

case WM_ICON_NOTIFY:
{
}
case WM_LBUTTONDBLCLK:
{
ShowWindow(hWndDlg, IDD_DLGFIRST);
break;
}


break;

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(cPassword);
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: minimizing dialog to system tray Pin
Mark Salsbery6-Aug-07 20:12
Mark Salsbery6-Aug-07 20:12 
GeneralRe: minimizing dialog to system tray Pin
iddqd5157-Aug-07 3:27
iddqd5157-Aug-07 3:27 
QuestionRepainting Display Seems Slow Pin
BuckBrown6-Aug-07 11:03
BuckBrown6-Aug-07 11:03 
AnswerRe: Repainting Display Seems Slow Pin
Luc Pattyn6-Aug-07 11:10
sitebuilderLuc Pattyn6-Aug-07 11:10 
GeneralRe: Repainting Display Seems Slow Pin
BuckBrown6-Aug-07 11:52
BuckBrown6-Aug-07 11:52 
GeneralRe: Repainting Display Seems Slow Pin
Luc Pattyn6-Aug-07 12:14
sitebuilderLuc Pattyn6-Aug-07 12:14 
GeneralRe: Repainting Display Seems Slow Pin
BuckBrown7-Aug-07 6:24
BuckBrown7-Aug-07 6:24 
GeneralRe: Repainting Display Seems Slow Pin
Luc Pattyn7-Aug-07 6:51
sitebuilderLuc Pattyn7-Aug-07 6:51 
GeneralRe: Repainting Display Seems Slow Pin
BuckBrown7-Aug-07 7:55
BuckBrown7-Aug-07 7:55 
GeneralRe: Repainting Display Seems Slow Pin
Luc Pattyn7-Aug-07 13:36
sitebuilderLuc Pattyn7-Aug-07 13:36 
Questionhow to convert a String to datetime and do subtraction of time ??? Pin
aefmaaradji6-Aug-07 1:01
aefmaaradji6-Aug-07 1:01 
AnswerRe: how to convert a String to datetime and do subtraction of time ??? Pin
Luc Pattyn6-Aug-07 1:12
sitebuilderLuc Pattyn6-Aug-07 1:12 
Questiondouble(*)[2] ? Pin
dalgados5-Aug-07 21:18
dalgados5-Aug-07 21:18 
AnswerRe: double(*)[2] ? Pin
prasad_som5-Aug-07 22:22
prasad_som5-Aug-07 22:22 
Questionhow to declare a matrix in visual c++.net 2005 c++ cli ? Pin
aefmaaradji5-Aug-07 0:28
aefmaaradji5-Aug-07 0:28 
AnswerRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
mid=57415-Aug-07 5:17
mid=57415-Aug-07 5:17 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
aefmaaradji5-Aug-07 12:09
aefmaaradji5-Aug-07 12:09 

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.