Click here to Skip to main content
16,005,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: font button and picture [modified] Pin
_AnsHUMAN_ 5-Jul-06 1:38
_AnsHUMAN_ 5-Jul-06 1:38 
GeneralRe: font button and picture Pin
ashish dogra5-Jul-06 2:03
ashish dogra5-Jul-06 2:03 
AnswerRe: font button and picture Pin
Hamid_RT5-Jul-06 2:03
Hamid_RT5-Jul-06 2:03 
AnswerRe: font button and picture Pin
David Crow5-Jul-06 3:05
David Crow5-Jul-06 3:05 
QuestionBitmap on toolbar button Pin
anjita5-Jul-06 1:17
anjita5-Jul-06 1:17 
AnswerRe: Bitmap on toolbar button Pin
_AnsHUMAN_ 5-Jul-06 1:33
_AnsHUMAN_ 5-Jul-06 1:33 
AnswerRe: Bitmap on toolbar button Pin
cje5-Jul-06 6:06
cje5-Jul-06 6:06 
QuestionWriting a ISAPI Extension for Win CE with SQL CE 2.0 access Pin
SkySurferOne5-Jul-06 1:15
SkySurferOne5-Jul-06 1:15 
Hi,

i try to write a ISAPI Extension for Win CE 4.2 to view dynamic webpages.
The got the ISAPI environment working it can now read templatefiles and replace tags in the template but now i try to fill the page with data form a SQL CE 2.0 Server. As far as i know there is the only way to connect by using ole db. right?

i found the article about accessing MS SQL Server CE v1.0 / 2.0 without ADO object. I tried to implement it. When I call the included test function it tells me that SQL Server is running. And with the example application it's no problem to connect and create tables and so on.. but when i try to connect to my database it always fails.

Anyone can help me with this?

Her's my example code:

<br />
<br />
#include "stdafx.h"<br />
#include "WriteFunctions.h"<br />
#include "ReadFunctions.h"<br />
#include "SqlSvrCe.h"<br />
<br />
<br />
<br />
BOOL APIENTRY DllMain( HANDLE hModule, <br />
                       DWORD  ul_reason_for_call, <br />
                       LPVOID lpReserved<br />
					 )<br />
{<br />
    return true;<br />
}<br />
<br />
BOOL WINAPI GetExtensionVersion(HSE_VERSION_INFO *pVersion)<br />
{<br />
	pVersion->dwExtensionVersion = MAKELONG(HSE_VERSION_MINOR, HSE_VERSION_MAJOR);<br />
<br />
	strcpy(pVersion->lpszExtensionDesc, "ISAPI DB Connection");<br />
<br />
	return true;<br />
}<br />
<br />
DWORD WINAPI HttpExtensionProc(EXTENSION_CONTROL_BLOCK *pECB)<br />
{<br />
	HRESULT hr;<br />
	WriteHTMLHeader(pECB);<br />
	WriteHTMLHead(pECB, "ISAPI DB Connection");<br />
	WriteHTML(pECB, "Checking SQL Server\r\n<br>");<br />
	// Perform Sql Server CE component self test<br />
	if (SqlServerSelfTest() != 0)<br />
	{<br />
		// Notify user about the error<br />
		WriteHTML(pECB, "SQL Server CE not installed!\r\n<br>");<br />
		// Exit current appplication<br />
		<br />
	} else {<br />
		WriteHTML(pECB, "SQL Server CE installed!\r\n<br>");<br />
	}<br />
<br />
	hr = CreateSqlSvrCeProvider();<br />
	WriteHTML(pECB, "Result : %d\r\n", hr);<br />
	hr = ConnectDB(TEXT("\\StoreCard\\Tmp\\database.sdf"));<br />
	if (FAILED(hr)){<br />
		WriteHTML(pECB, "Can't Open\r\n<br>");<br />
	}<br />
<br />
	WriteHTMLFoot(pECB);<br />
<br />
	return HSE_STATUS_SUCCESS;<br />
}

QuestionQuick / Easy 2D Display Pin
ldsdbomber5-Jul-06 1:02
ldsdbomber5-Jul-06 1:02 
AnswerRe: Quick / Easy 2D Display Pin
_AnsHUMAN_ 5-Jul-06 1:11
_AnsHUMAN_ 5-Jul-06 1:11 
GeneralRe: Quick / Easy 2D Display Pin
ldsdbomber5-Jul-06 3:07
ldsdbomber5-Jul-06 3:07 
GeneralRe: Quick / Easy 2D Display Pin
ldsdbomber5-Jul-06 3:10
ldsdbomber5-Jul-06 3:10 
QuestionFiltering a List View with an other List Box Pin
frbry5-Jul-06 0:57
frbry5-Jul-06 0:57 
AnswerRe: Filtering a List View with an other List Box Pin
Viorel.5-Jul-06 1:28
Viorel.5-Jul-06 1:28 
GeneralRe: Filtering a List View with an other List Box Pin
frbry5-Jul-06 1:55
frbry5-Jul-06 1:55 
AnswerRe: Filtering a List View with an other List Box Pin
Sarath C5-Jul-06 1:37
Sarath C5-Jul-06 1:37 
GeneralRe: Filtering a List View with an other List Box Pin
frbry5-Jul-06 1:57
frbry5-Jul-06 1:57 
GeneralRe: Filtering a List View with an other List Box [modified] Pin
Sarath C5-Jul-06 2:27
Sarath C5-Jul-06 2:27 
AnswerRe: Filtering a List View with an other List Box Pin
frbry5-Jul-06 2:27
frbry5-Jul-06 2:27 
GeneralRe: Filtering a List View with an other List Box Pin
Viorel.5-Jul-06 2:40
Viorel.5-Jul-06 2:40 
GeneralRe: Filtering a List View with an other List Box [modified] Pin
frbry5-Jul-06 2:46
frbry5-Jul-06 2:46 
GeneralRe: Filtering a List View with an other List Box Pin
Viorel.5-Jul-06 2:59
Viorel.5-Jul-06 2:59 
GeneralRe: Filtering a List View with an other List Box Pin
frbry5-Jul-06 3:10
frbry5-Jul-06 3:10 
QuestionHow we can set borders to dialog Pin
muravi5-Jul-06 0:51
muravi5-Jul-06 0:51 
AnswerRe: How we can set borders to dialog [modified] Pin
_AnsHUMAN_ 5-Jul-06 0:56
_AnsHUMAN_ 5-Jul-06 0:56 

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.