|
Hi,
I am working with a C# web application in which a com object was used. This code was developed by someone else, it was trying to run this project on my laptop. I tried to register the com dll with regsvr32 command, but I was getting an error that says Interop.WINTERTREESPELLINGSERVERLib.dll was loaded, but DllRegisterServer entry point was not found.
DllRegisterServer may not be exported, or corrupt version of dll may be in memory. Consider using PView to detect and remove it.
Can someone suggest me how to solve this problem.
Thanks,
CodeLearner.
|
|
|
|
|
Interop.WINTERTREESPELLINGSERVERLib.dll doesn't have a DllRegisterServer function because it's just the RCW (runtime callable wrapper) assembly .NET uses to actually call the corresponding COM objects.
You have to register the original dll containing the COM objects you want to use with regsvr32.
Regards,
mav
|
|
|
|
|
To extend on what mav said, you should never register the interop assembly (the RCW) anyway. When you develop an RCW, it marshals calls to the original COM server. If you registered the RCW (a la regasm.exe, which is for registering CCWs) it would be the COM server but would contain no implementation. Your COM server is unavailable!
Only register the COM server (.dll, .exe, .ocx, whatever) using regsvr32.exe. If you develop a CCW (COM-Callable Wrapper), register that with regasm.exe that comes with the .NET Framework (i.e., not the SDK but the redistributable Framework).
There's several articles - including one of mine - that discuss this in greater detail.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Thanks for your replies Mav and Heath. I will try what you have suggested.
Thanks,
CodeLearner.
|
|
|
|
|
i hae this task which is to display each client load on the network , the display should be as a diagrame
|
|
|
|
|
Ok, your next step would be to design a solution for your stated goal.
Charlie
if(!curlies){ return; }
|
|
|
|
|
You'll have to have some kind of client application on each of your workstations to collect this kind of information and send it up to a central server. You can't possibly poll each and every computer for its network load constantly. The only other source of information MIGHT be the switch that the clients are connection to.
Also, when/if you write your client app, you'll have to define what consititutes "network load". Packets Sent/Received per second? Bytes Sent/Received per second? per minute? You can't send these statistics to a central server for collection constantly because you'll end up heavily skewing your data. Thus, you'll also have to specify at what interval the clients would have to report in with the server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
First you have to be sure what client load means, where the main issues are:
- how do you measure data? bytes, packets, etc.
- how do you measure time? sec, msec, hour..
If the answer to the second question is a long time, e.g. measuring the daily load, you might write a relatively simple client for each computer, and send the data to a "server" once a day. For the clients, you might want to use the Performance Counters, which u could access through the Server Explorer pane.
If you need much shorter measurement times, such as net load per second, sending data from clients screws up all measurements (and with some effort you could overload you're net). In such a case, you need some networking knowledge. If all the machines, e.g., are connected through a single switch, u could use one of the machines to sniff packets (in non/promicious mode? i don't remember). this is not so simple - try looking up winpcap which is a packet pick up library. i think that someone here has built a c# wrapper for it.
there are no facts, only interpretations
|
|
|
|
|
I am working on a SysTray App that has a context menu. The MenuItems listed in the menu will have subitems in each but I want the root item to be clickable so the .click event will trigger. Any ideas?
Thanks,
Cyber
|
|
|
|
|
The solution is not easy, and should not be used anyway. There are User Interface Guidelines for a reason and most applications follow them.
In this case, you should add a root menu item separated from it's children by a separator for each child menu. While this isn't common, it does not violate user interface guidelines.
An example would look like so:
Root
+-Parent1
| +-Parent1
| +--------
| +-Child1
| +-Child2
+-Parent2
| +-Parent2
| +--------
| +-Child1 This is also important because users can turn off the expansion of sub-menus by hovering over them, thus requiring them to click the menu to display its sub-menu.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I don't understand if I was to use the Context Menu Control how would I design what your describing?
Thanks,
Cyber 
|
|
|
|
|
Quite easily. Add your menus and child menus as you normally do. Then add a menu where the text is the same as the parent text and drag that to the top of your child menu. Add a separator (Text should be set to "-" (without quotes)) and drag that just below the menu item described above. All you're doing is adding a menu item with the same text as the parent menu. You add your Click event handler to it.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hello,
How can i execute a MobileWebApplication on my Pocket Pc's that the application can consumes a WebService on my Desktop? - Do i need a Web-Server or something else on my PocketPc?? - Because only calling the MobileWebForm.aspx in my PocketExplorer does not work.
thx
regards
mat
|
|
|
|
|
hi,
You can check your IIS configuration first. Then visit these links.And we have lot of articles here in code project which will explain you step by step information of webservice conception.
Sometimes this may help you out.
http://www.devbuzz.com/content/zinc_compact_framework_web_service_xml_pg1.asp
http://www.pocketpcmag.com/_archives/may03/e_developers_corner.asp
http://www.ondotnet.com/pub/a/dotnet/2002/07/08/compactce.html?page=3
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I know the whole web service concept i only need to know how to set up and run a Mobile Web Appication on my PocketPc to consume a Web Service on a Server??? - because on the PocketPc does not exist an Web-Server and only call the MobileWebForm.aspx of the MobileWebApplication in the PocketExplorer does not work...??
regards
patrick
|
|
|
|
|
hi,
You Wrote :
I know the whole web service concept-
You may know the whole thing. If so you would have easy fix the problem . Am i right.
Your way of prsentation is not all good for this sort of free sites. Don't feel bad this is my openion.
And about answer. I am not the founder of WebService.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I don't know why you are upset about my posting. Sorry, but i only asked a question.
|
|
|
|
|
I know the whole web service concept i only need to know how to set up and run a Mobile Web Appication on my PocketPc to consume a Web Service on a Server??? - because on the PocketPc does not exist an Web-Server and only call the MobileWebForm.aspx of the MobileWebApplication in the PocketExplorer does not work...??
regards
mat
|
|
|
|
|
Hi,
I'm developing an application for mobile device in
Smart Device framework and i would like to know if there are extra controls for this framework in whidbey.
Thanks,
Shay.
|
|
|
|
|
hi,
I am not sure about extra controls but i can assure that our all avilable controls are seriously updated with new customiztion.
eg. Insted of datagrid here we have DataGridView.
See i wrote an article on Datagrid customiztion there i mentioned one url. Which connect you to the world of Whidbey. Try that
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Hi
Is there any mechanism to use locking facility in ADO.net for a table ? Pls suggest any solution for locking a record/table.
Warm Regards
Pradeep
|
|
|
|
|
hi,
Try to post your queary once.;)
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Hi
Is there any mechanism to use locking facility in ADO.net for a table ? Pls suggest any solution to do locking a record/table.
Warm Regards
Pradeep
|
|
|
|
|
hi,
Ado is connected in nature.That's why we can apply locking machanisam there in Ado.
This is not the case with Ado.net, which means that ado.net uses what is referred as optimistic locking. i think you know about two kind of locking say Optimistic and Pessimistic locking.
You can't directly achive pessimistic locking here in ado.net like ado. You can achive this through applying transactions in your application. You can do one thing please look at how you can use the IsolationLevel enum with transactions to achive some kind of locking at the data source.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I'm trying to write an application to measure how long I spend using certain applications during the day. Idealy I'd like to get a message/event sent to my program when another selected program gets user focus as well as when it loses it.
I've figure out how to get a list of all running process and get their running information but is it possible to register a callback function to get notified of when another process recives or loses user focus so I can start stop a simple timer?
Cheers!
|
|
|
|