Software Development Network Logo
  • Visual FoxPro
  • Smart Devicet
  • Visual C++
  • Visual Basic
  • VS Team System
  • SQL Server
  • Audio and Video
  • Windows Forms
  • IE Development
  • Windows Vista
  • Microsoft ISV
  • Game Technologies
  • SharePoint Products
  • Visual C#
  • .NET Development

Software Development Network >> MichaelD!'s Q&A profile

MichaelD!

Member List

Martin Schmidt
comspy
Michael J Brown
KnobCreek
Pål Børseth-Hansen
Alanha
in.the.dark
GregDuck
ZhenYuan
Yeago
GoodMorningSky
GTrz
aabtahi
HKEC
Sudheer Uppada
Califer
eginde
Binu Jeesman
Michael Hansen
shawn957376
Only Title

MichaelD!'s Q&A profile

  • .NET Development Unable to update data adapter - C#

    Any expert here pls help me up. Recently i was learning about d C#.net. I was following d msdn guide in Updating d data adapter wit dataset. When i try d debug d code line by line, everythings seems fine until d last statement which is update d data adapter failed(I highlight with red color in my code). D exception tat is displayed An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll Additional information: Update unable to find TableMapping['Table'] or DataTable 'Table'. This is my code: string cString = "Persist Security Info=False;Integrated Security=SSPI;database=northwind;server=white"; SqlConnection myConnection = new SqlConnection(cString); myConnection.Open(); SqlData ...Show All

  • Visual C++ Is it possible to consume a VB.Net .dll from C (unmanaged not c++)

    I have a VB.Net dll that contains functionality I need to access from a C program. As GetProcAddress won't get me where I need to go (right ) and I cannot create an instance of anything (C not C++) is there a route possible to loading this library I assume that it's not an option to recompile the C code as C++ That would be the easiest route (use the /Tp option). Failing that, you would need an intermediate layer of C++ code compiled with /clr that makes your calls into the VB code. This would contain a #using statement to access the VB assembly/dll and expose global functions visible to the C code. These functions would be declared as extern "C" and could be exported using __declspec(dllexpor ...Show All

  • Visual Studio 2008 (Pre-release) Smart client callback

    Hi there, I'm just learning wcf technolgy and it should be great. However, i have a question about how to implement callback. I have a smart client and a service under iis. My client call it's method and it's ok. I want to do something more complex now. I want to notify my smart client when a external event coming. So I would like to have a service with a method that i can invoke and the service method implementation will able to notify one or more smart client. Is it possible to do this Thanks a lot for this help Best regards, Hi Kevin, Do you know if there's a way to have the same behavior with a SessionMode for the service contract to SessionMode.Single If there's no way, as i suspect, what's ...Show All

  • SQL Server Transaction logs growing

    Hello, What if there are uncommited transactions in the log and backing up the database/logs does not trunicate the log and it still grows Thanks wade I just answered a similar question at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=653804&SiteID=1 Check out the stored proc there. It may help you. Cheers. ...Show All

  • Visual C++ low level keyboard hooks in service

    hi i m using setwindows hook function with low level keyboard as paramter. in application it works fine and capture all global keystrokes but it is not working in service call back function is not called. i m calling setting hooks from servicemain function without the thread and hook is setted does not return null. Any suggestion what to do or what i m missing my service is interfactive service mean it listen windows events. i had found one thing that in order to listen windows event service should be interactive i used that servive type in creating service .(SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS). is that not sufficient to make it to interact with desktop. schService = CreateService(schSCManager, TEXT(SZ ...Show All

  • Visual C++ Term not initialized?

    The program listed below works just fine without the while loops, but once I enter in the while loop it no longer works: #include <iostream> #include <cmath> using namespace std; int main ( void ) { char term[10]; // Number of years of loan. Used for users knowledge of length of loan. // char loan[10]; // Monetary amount of loan. For use with equation to produce monthly payment amount, and for display to the user. // char rate[10]; double loanvalue; char exit; cout << "Mortgage Calculator" << endl; // The following lines are used to display the loan information to the user. // cout << "For a loan with the following:" << endl; while (exit != 'n') { cout << "Ent ...Show All

  • Visual Studio 2008 (Pre-release) DataContract vs persistence model - Guidance needed

    Hi forum I really need some architectural guidance on the above subject. Here's the scene and how I chose to implement it so far: I have layered server, which host WCF services. These are the layers: - WCF Layer - Business layer - Persistence layer The persistence layer is not the database, but merely a repository of method, which operates on the persistence model. The persistence model is exposed with a OR mapper (Vanatec OpenAccess) and is highly navigable in respect to associations between persistent classes. The WCF layer is the transaction boundary, which has the role of calling the right methods (in the right order) in the business layer. So you can say that the WCF service methods controls the steps involved in each "business t ...Show All

  • Visual Studio Express Editions Designing web pages

    Hi, I need help creating a web page with VB Express. I am just learning VB Express but know enough to create basic things. Can you give me any help creating a web page Could you give me any code Thanks Visual Basic Express isn't enough for that, you must use Visual Web Developer , download it . ...Show All

  • .NET Development SendMessage and FindWindow in JScript

    Hi i am Writing an HTA Application using JScript. Is it posible to use SendMessage and FindWindow Functions in JScripst to Control other Applications Can Someone Give me an Example pls. i think there must be some activex to use this shell functions but i did not know wich new ActiveXObject(" "); thx for help Eistee PS: Sorry for my bad english but i hope you understand what i mean *g* http://www.jcomsoft.com/hwnd.htm I found this site. It looks like it will work for this. I am going to try it out and give the results here. ...Show All

  • .NET Development TCP Remoting in Visual Basic 2005

    I am developing an application using VB.NET 2005 with a SQL Server 2005 back end. Multiple users on the LAN will be running the application simultaneously. When one user adds a record to the database, I want their client application to pop up a message on another user's desktop telling them there is a new record. I am trying to do this with TCP Remoting. I have created a class library - compiled as a DLL - that has a public function to receive the message and then raise an event for the hosting application to respond to. AS users log onto the database, I keep a table with their computer name, IP address and listening port. The hosting application sets up a channel and listens on the proper port. When it is time for the application to tell ...Show All

  • Silverlight (formerly WPF/E) Linux support?

    Having support for Mac, Firefox, Opera and Safari is terrific news for WPF/E.  The elephant in the room though is Linux support.  If Linux were supported in the next CTP, this would be unstoppable.  --Oren Hi, I got the information from Microsoft Germany that Microsoft will listen to the developers and end users. If there is a big request on supporting Linux they will be very open to build a plug-in for Linux. My hope currently is that Windows Mobile will be the next that will get the plug-in. Michael ...Show All

  • Visual Studio Tools for Office Cypress and task panes accross multiple documents / addin support

    I have recently made a post earlier on today regarding a problem I have had with Action panes and task panes. In a VSTO 2005/ Excel project, I have created a very powerful action pane for an application we are developing. Problem is that this action pane is only available for the workbook in which it was created. Its important that this action pane is available for other workbooks including those that are not created by VSTO (i.e. existing Excel workbooks with at most VBA in them). For example if a user creates a new workbook, this action pane should be available to them. Cindy has pointed out that action pane is document specific and not application specific which is a disaster for me. She also pointed out that add-ins do not suppor ...Show All

  • .NET Development Remoting and Scripts

    I am using remoting (IPC channel) between a client and a server for IPC using .NET 2.0. Does anyone know of a way to use remoting from a vbscript (as a client) For instance, for COM objects, one could use CreateObject. Is there something similar one can do for remoting (other than using COM Interop) Thanks, Al. Remoting will not work directly with COM interop. You will have to write a wrapper .NET client component and call it through COM interop from VB script. Or use web services :). ...Show All

  • .NET Development Lossed bytes in Converting String to Bye Arrays & vice versa?

    Hi, I need to convert a byte array to string and then the same (or possibly modified) string to byte array. I did it like this. myData=Encoding.ASCII.GetBytes(buffer) where buffer is a byte array and myData is a string. Now later in application I need to convert another string to this buffer. That another string contains exactly the same text as myData contains. So I do like this buffer = Encoding.ASCII.GetBytes(anotherString) Now the length of this buffer should be same as in the first case before conversion. i mean i lost some bytes here...why is that. I tried with other options as well like Encoding.Default, Encoding.ASCII, Encoding.UTF8, .UNICODE etc...but none of them gives the same number of bytes in both cases. ...Show All

  • Gadgets What's gimage.addImageObject for?

    I know gbackground.addImageObject, but what is gimage.addImageObject for I tried it, but seems no effect (though no error). Interesting question, the MSDN documentation also states gimage.removeObjects is supported. I'd guess someone copied the gbackground method definitions. I'm sure Bruce will confirm if they are supported, it would certainly make some Gadgets easier to code if it was, as gbackground.removeObjects isn't very friendly. ...Show All

©2008 Software Development Network