|
andrewdunbabin wrote: that wont work properly with VB ( it crashes on events etc) but im informed the dll works fine in a C++ enviroment. This does not guarantee that there is something inherently wrong with the DLL that can be fixed by putting it inside another DLL. The first thing you should do is try and find out why it is crashing, rather than trying to fix a problem which may not exist.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have been back to the body that wrote the DLL and they arent interested and I have no idea and no time or inclination to find out why it wont work properly. I am looking for an answer to the question I posed as this is meant to be the idea of this forum is it not?
Andrew
|
|
|
|
|
Well, I gave you an idea, it's up to you what to do next.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
andrewdunbabin wrote: but I dont know how to add s.dll to my new dll that im writing in VS6
For your new DLL project, you do not need to add s.dll to it. Rather you will need to add headers (s.h) to one of your source files and then when you link your DLL, you will need to include a library file (s.lib) in the libraries list. Do you have those files available to use?
As Richard was mentioning though, it would be a good idea to find out why the crash is occurring in the first place. Without that knowledge, how do you ensure that your DLL project wont have the same issue.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
hello!!
how can we send a message from a client to another client in a client server architecture ?
i am trying to implement an algorithm in c++ in which i want to send message from each node to the neighbouring nodes for some reason and to further implementation ..i m confused how to do dis because i have never worked with network programming before in c. i have studied some codes but they are either sending message from server to client or client to server...can someone help please?
|
|
|
|
|
You just need to add some extra information to your message, which the server can use to forward it on to a different client. Alternatively make each system into a server and client so they can talk to any other machine. I don't know anything about WCF but that may offer some options.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
hi all,
can anybody help me to get physical drive list and details without using the COM.
thanks.
|
|
|
|
|
Please use GetLogicalDriveStrings() or GetLogicalDrives().
GetDriveType() can be used to get details of the drive.
GetDiskFreeSpace() can be used to retreive information about the specified disk, including the amount of free space on the disk.
|
|
|
|
|
i want to get list of physical drives not the Logical Drives...
|
|
|
|
|
GetLogicalDrives() enumerates all mounted disk partitions, not physical drives.
You can enumerate the drive letters with (or without) GetLogicalDrives, then call QueryDosDevice() to find out which physical drive the letter is mapped to.
Alternatively, you can decode the information in the registry at HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
stackoverflow answer.
|
|
|
|
|
Have you considered DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO) ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Hi all,
CoInitialize(NULL);
hres = CoInitializeSecurity(
NULL,
-1,
NULL,
NULL,
RPC_C_AUTHN_LEVEL_DEFAULT,
RPC_C_IMP_LEVEL_IMPERSONATE,
NULL,
EOAC_NONE,
NULL
);
if (FAILED(hres))
{
CString str=_T("");
str.Format(_T("Failed to initialize security. Error code = %0x"),hres);
}
here coinitializesecurity failed with error code 800706ba.
please help how can i resolve this why this error comes
thanks...
|
|
|
|
|
First to know is the error message for that code. 0x8007xxxx codes are just the same as 'normal' Windows error codes (the highest bit is the error bit and 7 is the Win32 facility). So passing 0x6BA to ::FormatMessage() gives us the error message:
The RPC server is unavailable.
Now you can use Google to find solutions. The first result is Troubleshooting "The RPC server is unavailable"[^]
|
|
|
|
|
Did you check to see what that error code means? It suggests that some service required for this call is not available. Check the documentation[^] for further details.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
please help me to solve this...
|
|
|
|
|
Solve what? I have no idea what is happening in your system except that a system call gives you an error code. You need to do some diagnosis (and probably some Google searching) to discover why this happens. Have you checked that all the parameters are correct on your call to CoInitializeSecurity() ?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
When user click the item of the CListCtrl, I create a CTreeCtrl dynamicly to let use the data,
but the CTreeCtrl is disabled, I do not know why.
Is there anyone know why it is.
modified 15-Jan-13 10:31am.
|
|
|
|
|
yu-jian wrote: but the CTreeCtrl is disabled, I do not know why. Is there anyone know why it is. Without seeing some of your code we cannot even begin to guess what may be happening.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Sorry
CPoint point;
GetCursorPos(&point);
this->ScreenToClient(&point);
CRect rect;
rect.top = point.y;
rect.left = point.x;
rect.right = rect.left + 200;
rect.bottom = rect.top + 300;
CComboBox* pComboBox = new CComboBox();
pComboBox->Create(WS_VISIBLE, rect, this, NULL);
pComboBox->ShowWindow(SW_SHOW);
CDeviceInfoArray arrDeviceInfo;
...
for(int i = 0; i < arrDeviceInfo.GetCount(); ++i)
{
CString strDevice;
strDevice.Format("%d", arrDeviceInfo[i]);
pComboBox->AddString(strDevice);
}
|
|
|
|
|
Is your CTreeCtrl being disguised as a CComboBox ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Firstly, I use the CTreeCtrl, but failed, then I use the CComboBox, but also failed, too.
I thought that it's the same problem.
|
|
|
|
|
I don't know what this has to do with a tree control, but your Create() call is missing some windows styles (specifically WS_CHILD ), and your control does not have an id. See the documentation[^] for more details.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
At least show us the code you use to create the Tree Control
|
|
|
|
|
please show your CTreeListCtrl creation code. without seeing code how we can predict issue?
|
|
|
|