|
use msde
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Hello, the codegurus around the world.;)
What is MSDE?
Just kidding.
As far as I know, MSDE only works for the test on Client machine.
So, I guess that we can't use MSDE as SQL Server does on Window NT Server.
One more thing.
Don't update to the beta of SQL 2000 from MSDE CD
This overwrites ADO library, so we must rewrite the code.
If we have VC++, we can get this free MSDE CD.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
As far as I know, MSDE only works for the test on Client machine. So, I guess that we can't use MSDE as SQL Server does on Window NT Server
MSDE runs on both Win NT workstation and Server, and is 100% compatible with Sql Server 7.0...
Is is a Sql Server 7.0, just with some performance limitations.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hello, the codegurus around the world.;)
You're right partly.
I mean that the client can't access MSDE through the network, can it?
If MSDE works as SQL Server, we don't need to buy SQL Server at all.
MSDE is only the test Database server if the developer makes a test for his or her code to
the client enviornment. (127.0.0.1).
So, MSDE works on Window NT server, but this is only for the local host enviornment.
If i am wrong, I'm happy since I don't need SQL Server at all.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
You are wrong...
MSDE is not for test... On the MSDE CD there is a Sql Server 7.0 Developer Edition, that you can use for test. MSDE is for production.
It works perfectly over network, just as the "real" SQL Server.
But, when more than 10 clients is connecting to MSDE at the same time, it starts to get way slower than the "real" Sql Server.
If you only are 5 persons in a business, there is NO difference in the use of MSDE and Sql Server... (except that there are no admin tools installed when you install MSDE)
Trust me, I know MSDE as we use it on some of our solutions...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
hey anders
where did you get the info about slow-down after 10 users? we use msde in production too (thats how come i knew masaaki was in error too) ... and i would like to know some definitive source of info (if there is one) thats states the 10 user issue so i can give reasons for some of our clients to foot the upgrade bill if required
thanks
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
|
I have a CHtmlView based app. How can I detect when the app creates a download file dialog? I would also like to get the url of the file it is trying to download.
Thanks in Advance
modified 12-Jul-20 21:01pm.
|
|
|
|
|
Hello,
I was wondering if someone could point me to the documentation that describes what DATA specific MESSAGES pass to there call back functions.
Example:
A ListCtrl has the message of NM_CLICK. It gets mapped to a fucntion like this
CMyDialog::OnClickList(NMHDR* pNMHDR, LRESULT* pResult)
Now How in the hell am I supposed to know what type of data pNMHDR is pointing to?
I guesse it is pointing to a LPNMITEMACTIVATE, but the only reason I know this is becuase i found it in someones code, not in any documentation.
This question is not focused on a CListCtrl. Im talking about any MFC contro;. What are the are there passed arguments pointing to??
Is there documentation on this? Am i just blind and its right in front of me?
Any Help would be appreciated.
Thanks.
|
|
|
|
|
How in the hell am I supposed to know what type of data pNMHDR is pointing to?
You just read the docs on the message in question. Enter "NM_CLICK" into the MSDN Index page, and you'll see a few entries. Select "NM_CLICK (list view)".
As for how the parameters get passed to the OnClickList() function, MFC handles the raw WM_NOTIFY message, unpacks the parameters (from wParam and lParam), looks up your handler in the class's message map, and calls the handler.
--Mike--
http://home.inreach.com/mdunn/
Tables, ladders, chairs, OH MY!
|
|
|
|
|
I have a problem with ExitWindowsEx. AFAIK, using EWX_SHUTDOWN with that API function causes the system to shut down, right? Well, what happens is that the system logs off!!!!!!!!
My computer shuts down normally when I choose shut down from the start menu and restarted normally by setup programs.
What is going on???
Thanx
|
|
|
|
|
I was able to solve my own problem. Thanx anyway.
*Obsolete*
I'm creating a multithreaded server application using winsock. So far everything works well except when i try to send data to the client. I get a WSAEINVAL(10022) error on the Send() function. Here's the code:
UINT PASCAL CLJFileServer::ListenProc(LPVOID *pParam)
{
CLJFileServer *pThis;
pThis = (CLJFileServer*)pParam;
if (!pThis)
return 1;
CTimeoutSocket* pClient = NULL;
CTimeoutSocket* pListen = new CTimeoutSocket();
int nLoopCount;
while (!pListen->Create(pThis->m_uPort))
{
Sleep(LJFS_TIMEOUT);
nLoopCount++;
if (nLoopCount > LJFS_SOCKET_RETRY)
{
pThis->m_hListen = NULL;
pThis->StartListening();
return 1;
}
}
pListen->Listen();
while(pThis->m_bStop != true)
{
if (pClient)
delete pClient;
pClient = new CTimeoutSocket;
pListen->SetTimeout(LJFS_TIMEOUT);
int bAccepted = pListen->Accept(*pClient);
if (bAccepted)
{
pThis->SendAck(pClient);
if (pThis->m_uServerType == LJFS_LISTEN)
pThis->Login(pClient);
else
pThis->ForwardConnection(pClient);
}
}
if (pClient)
delete pClient;
pListen->Close();
delete pListen;
pThis->m_hListen = NULL;
return 0;
}
void CLJFileServer::SendAck(CTimeoutSocket *pClient)
{
//pClient->Bind(LJ_FSPORT);
TRACE("Error No: %d", GetLastError());
if(m_uServerType = LJFS_LISTEN)
{
pClient->Send((void*)LJ_LOGINACK,sizeof(LJ_LOGINACK));
TRACE("Error No: %d", GetLastError());
}
else
pClient->Send((void*)LJ_METASERVER,sizeof(int));
}
Thanx for your help in advance.
Stephen Caldwell
Desick Information Technologies
|
|
|
|
|
Bonjour! when i try to define a CArray as a static class member i get a link error. what's the problem, and how can i solve it? thx
derhackler
|
|
|
|
|
Please provide error description (or source of your class) to give us the idea of your problem.
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
|
|
|
|
|
this is the code of the header file:
#include <afxtempl.h>
class CPropertyList
{
public:
CPropertyList();
virtual ~CPropertyList();
public:
static CString fnGetADsProperty(int intArg);
static CString fnGetADsProperty(CString cstrArg);
static int fnGetIntProperty(CString cstrArg);
static CString fnGetProperty(int intArg);
static CString fnGetProperty(CString cstrArg);
//Statische members
static CArray<cstring,cstring&> cstraProperty;
static CArray<cstring,cstring&> cstraADsProperty;
static CArray<int,int> intaProperty;
};
this ist the error i get (for each CArray)
PropertyList.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class CArray<class cstring,class="" cstring="" &=""> CPropertyList::cstraProperty" (?cstraProperty@CPropertyList@@2V?$CArray@VCString@@AAV1@@@A)
any ideas?
derhackler
es ist wie es ist und es ist und es ist fürchterlich
|
|
|
|
|
CArray is the template class - so you need to provide template parameters!
Like that:
class CPropertyList
{
...
static CArray<cyourclass, cyourclass&=""> cstraProperty;
static CArray<cyourclass, cyourclass&=""> cstraADsProperty;
static CArray<cyourclass, cyourclass&=""> intaProperty;
};
and your always must define static variables (the code above is the declaration only!):
this code your should place out of class declaration! (most of us placing this in CPP file :
CArray<cyourclass, cyourclass&=""> CPropertyList::cstraProperty;
.. the same for others static members.
Hope it'll help.
#include
class CPropertyList
{
public:
CPropertyList();
virtual ~CPropertyList();
public:
static CString fnGetADsProperty(int intArg);
static CString fnGetADsProperty(CString cstrArg);
static int fnGetIntProperty(CString cstrArg);
static CString fnGetProperty(int intArg);
static CString fnGetProperty(CString cstrArg);
//Statische members
static CArray cstraProperty;
static CArray cstraADsProperty;
static CArray intaProperty;
};
this ist the error i get (for each CArray)
PropertyList.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class CArray CPropertyList::cstraProperty" (?cstraProperty@CPropertyList@@2V?$CArray@VCString@@AAV1@@@A)
any ideas?
derhackler
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
|
|
|
|
|
CArray is the template class - so you need to provide template parameters!
Like that:
class CPropertyList
{
...
static CArray<cyourclass, cyourclass&=""> cstraProperty;
static CArray<cyourclass, cyourclass&=""> cstraADsProperty;
static CArray<cyourclass, cyourclass&=""> intaProperty;
};
and your always must define static variables (the code above is the declaration only!):
this code your should place out of class declaration! (most of us placing this in CPP file :
CArray<cyourclass, cyourclass&=""> CPropertyList::cstraProperty;
.. the same for others static members.
Hope it'll help.
ps: just've seen your post on codeguru
#include
class CPropertyList
{
public:
CPropertyList();
virtual ~CPropertyList();
public:
static CString fnGetADsProperty(int intArg);
static CString fnGetADsProperty(CString cstrArg);
static int fnGetIntProperty(CString cstrArg);
static CString fnGetProperty(int intArg);
static CString fnGetProperty(CString cstrArg);
//Statische members
static CArray cstraProperty;
static CArray cstraADsProperty;
static CArray intaProperty;
};
this ist the error i get (for each CArray)
PropertyList.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class CArray CPropertyList::cstraProperty" (?cstraProperty@CPropertyList@@2V?$CArray@VCString@@AAV1@@@A)
any ideas?
derhackler
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
|
|
|
|
|
CArray is the template class - so you need to provide template parameters!
Like that:
class CPropertyList
{
...
static CArray<cyourclass, cyourclass&=""> cstraProperty;
static CArray<cyourclass, cyourclass&=""> cstraADsProperty;
static CArray<cyourclass, cyourclass&=""> intaProperty;
};
and your always must define static variables (the code above is the declaration only!):
this code your should place out of class declaration! (most of us placing this in CPP file :
CArray<cyourclass, cyourclass&=""> CPropertyList::cstraProperty;
.. the same for others static members.
Hope it'll help.
ps: just've seen your post on codeguru
#include
class CPropertyList
{
public:
CPropertyList();
virtual ~CPropertyList();
public:
static CString fnGetADsProperty(int intArg);
static CString fnGetADsProperty(CString cstrArg);
static int fnGetIntProperty(CString cstrArg);
static CString fnGetProperty(int intArg);
static CString fnGetProperty(CString cstrArg);
//Statische members
static CArray cstraProperty;
static CArray cstraADsProperty;
static CArray intaProperty;
};
this ist the error i get (for each CArray)
PropertyList.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class CArray CPropertyList::cstraProperty" (?cstraProperty@CPropertyList@@2V?$CArray@VCString@@AAV1@@@A)
any ideas?
derhackler
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
|
|
|
|
|
Hell, the system eats brackets
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
|
|
|
|
|
i've seen it.
|
|
|
|
|
ups. ther's something wrong with the forum code. it ignores the template parameters! but i've specified the parameters like CArray[CString,CString&] (i use other brakets). so something else must be wrong.
|
|
|
|
|
define the static members as I did in previouse post (some minuts ago - it should help. Yes - I see the templates problem - is not a reason !
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
|
|
|
|
|
ah!!! i see the problem. initializing the arrays is not a want - it's a must!! now my code compiles. thank you!!!
es ist wie es ist und es ist fürchterlich!
|
|
|
|
|
Hi everybody, I don't remeber if I ask this question before but I will try to take a chance to ask it again.
If there anybody know how to Link a ClistCtrl with a CTreeView like Windows Explorer when you click on a tree item the list show always different items ?
Can you tell me where I Can find reference on that or source code, tutorials or can you explain it to me in details ?
TIA
BLaZe
ICQ # 110244345
email : mpblaze@iquebec.com
|
|
|
|
|
G'day,
How about implementing a vertical splitter window and putting a tree control view in one pane and a list control view in the other?
Then handle item selections in the tree and notifying the list view so that it's contents are synchronized with the tree.
There may be a better way of handling this, but that's the best I can come up with for the moment.
Hope this helps,
Steve
|
|
|
|