Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Insert text to opened word-document Pin
baerten21-Jun-07 21:46
baerten21-Jun-07 21:46 
GeneralRe: Insert text to opened word-document Pin
Matthew Faithfull21-Jun-07 22:04
Matthew Faithfull21-Jun-07 22:04 
GeneralRe: Insert text to opened word-document Pin
baerten21-Jun-07 22:10
baerten21-Jun-07 22:10 
GeneralRe: Insert text to opened word-document Pin
Matthew Faithfull21-Jun-07 22:28
Matthew Faithfull21-Jun-07 22:28 
JokeRe: Insert text to opened word-document Pin
baerten21-Jun-07 22:49
baerten21-Jun-07 22:49 
QuestionUSB Removable Drive Detection in Win CE 5.0 Pin
cyberanee21-Jun-07 21:06
cyberanee21-Jun-07 21:06 
AnswerRe: USB Removable Drive Detection in Win CE 5.0 Pin
Matthew Faithfull21-Jun-07 21:29
Matthew Faithfull21-Jun-07 21:29 
QuestionRe: USB Removable Drive Detection in Win CE 5.0 Pin
cyberanee27-Jun-07 2:28
cyberanee27-Jun-07 2:28 
Hey Mathew

Thanks for ur inputs.
Can u give me further details about what WiCE OS version yours was. I m using Win CE 5.0, and hv just downloaded the patches yesterday.

Meanwhile, I tried to get the low level descriptor on CF and USB,but without any luck. I tried using FindFirstStore , FindNextStore functions but they give me the device name nicely, but not the device type...I am getting some garbage value in StoreInfo.dwDeviceType.

this is my source code:

STOREINFO SI;<br />
	HANDLE hStore;<br />
	int err=0;<br />
<br />
	SI.cbSize=sizeof(STOREINFO);<br />
	hStore=FindFirstStore(&SI);<br />
	if (hStore!=INVALID_HANDLE_VALUE)<br />
	{<br />
		<br />
		while(1)<br />
		{			<br />
			printf("Device type :\n");<br />
			switch (SI.dwDeviceType)<br />
			{<br />
			case STORAGE_DEVICE_TYPE_PCIIDE :<br />
				printf("1\n");<br />
			case STORAGE_DEVICE_TYPE_FLASH :<br />
				printf("2\n");<br />
			case STORAGE_DEVICE_TYPE_ATA :<br />
				printf("3\n");<br />
			case STORAGE_DEVICE_TYPE_ATAPI :<br />
				printf("4\n");<br />
			case STORAGE_DEVICE_TYPE_PCCARD :<br />
				printf("5\n");<br />
			case STORAGE_DEVICE_TYPE_CFCARD :<br />
				printf("6\n");<br />
			case STORAGE_DEVICE_TYPE_SRAM :<br />
				printf("7\n");<br />
			case STORAGE_DEVICE_TYPE_DVD :<br />
				printf("8\n");<br />
			case STORAGE_DEVICE_TYPE_CDROM :<br />
				printf("9\n");<br />
			case STORAGE_DEVICE_TYPE_USB :<br />
				printf("10\n");<br />
			case STORAGE_DEVICE_TYPE_1394 :<br />
				printf("11\n");<br />
			case STORAGE_DEVICE_TYPE_DOC :<br />
				printf("12\n");<br />
			case STORAGE_DEVICE_TYPE_UNKNOWN :<br />
				printf("13\n");<br />
			case STORAGE_DEVICE_TYPE_REMOVABLE_DRIVE :<br />
				printf("14\n");<br />
			case STORAGE_DEVICE_TYPE_REMOVABLE_MEDIA :<br />
				printf("15\n");<br />
			default:<br />
			printf("Not identified - %lu\n",SI.dwDeviceType);<br />
			}<br />
			<br />
			printf("Device Name : %S\n",SI.szDeviceName);<br />
			printf("Store  Name : %S\n",SI.szStoreName);<br />
<br />
			if (FindNextStore(hStore,&SI)==FALSE)<br />
			{<br />
				err=GetLastError();<br />
				printf("No more devices - %d\n",err);<br />
				FindCloseStore(hStore);<br />
				break;<br />
			}<br />
		}<br />
	}<br />
	else<br />
	{<br />
		int	err=GetLastError ();<br />
		printf("Could not get the handle! - error %d\n",err);<br />
<br />
	}


And these are the results:

<br />
Device Name : DSK1:<br />
Store  Name : IDE Hard Disk Drive<br />
Device Type : <br />
Not identified - 215290179 <br />
<br />
Device Name : DSK2:<br />
Store  Name : USB Hard disk Drive<br />
Device Type : <br />
Not identified - 215290179 
Cry | :((
AnswerRe: USB Removable Drive Detection in Win CE 5.0 Pin
Matthew Faithfull28-Jun-07 7:29
Matthew Faithfull28-Jun-07 7:29 
Question16-bit Windows program and 32-bit DLLs Pin
Krishnatv21-Jun-07 20:48
Krishnatv21-Jun-07 20:48 
QuestionRe: 16-bit Windows program and 32-bit DLLs Pin
David Crow22-Jun-07 2:43
David Crow22-Jun-07 2:43 
AnswerRe: 16-bit Windows program and 32-bit DLLs Pin
Mark Salsbery22-Jun-07 6:16
Mark Salsbery22-Jun-07 6:16 
AnswerRe: 16-bit Windows program and 32-bit DLLs Pin
Mark Salsbery22-Jun-07 6:21
Mark Salsbery22-Jun-07 6:21 
QuestionCList new and delete Pin
devvvy21-Jun-07 20:34
devvvy21-Jun-07 20:34 
AnswerRe: CList new and delete Pin
Cedric Moonen21-Jun-07 20:48
Cedric Moonen21-Jun-07 20:48 
GeneralRe: CList new and delete Pin
devvvy21-Jun-07 21:07
devvvy21-Jun-07 21:07 
GeneralRe: CList new and delete Pin
Cedric Moonen21-Jun-07 21:20
Cedric Moonen21-Jun-07 21:20 
QuestionDisplaying text on a Dialog Pin
Suneet.0321-Jun-07 19:50
Suneet.0321-Jun-07 19:50 
AnswerRe: Displaying text on a Dialog Pin
Hamid_RT21-Jun-07 20:25
Hamid_RT21-Jun-07 20:25 
GeneralRe: Displaying text on a Dialog Pin
Suneet.0321-Jun-07 21:32
Suneet.0321-Jun-07 21:32 
AnswerRe: Displaying text on a Dialog Pin
zhang80060521-Jun-07 21:12
zhang80060521-Jun-07 21:12 
AnswerRe: Displaying text on a Dialog Pin
sps-itsec4621-Jun-07 21:14
sps-itsec4621-Jun-07 21:14 
GeneralRe: Displaying text on a Dialog Pin
Suneet.0321-Jun-07 22:29
Suneet.0321-Jun-07 22:29 
GeneralRe: Displaying text on a Dialog Pin
sps-itsec4622-Jun-07 0:14
sps-itsec4622-Jun-07 0:14 
AnswerRe: How to open message Queue with send and Receive access mode Pin
SandipG 21-Jun-07 20:49
SandipG 21-Jun-07 20:49 

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.