csi_hugh's Q&A profile
Visual Basic using an interface
I am trying to use an interface but getting a null reference exception. The code is below. The reference to interface Ireg returns a null reference exception in the line "cookie = Ireg.RegisterPlugin(GUID, True)". Please don't pay attention to the program itself. This is just meant to be a sample of declaring an interface. If I declare Ireg using "new", it says "Interfaces cannot be declared as New".... so I tried declaring Ireg with "new" I get the null reference. Imports GoogleDesktopAPILib Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim goog As New GoogleDesktopQueryAPI Dim ...Show All
Visual Studio Team System dropped user
I deployed my project to the target and after deployment it dropped my user. Understandable, I could no longer connect to that database. How do I prevent that I looked in the post deplyment scripts and found nothing specific to my user. I do not have a server level role. Only dbo_owner for the target database. Paul It probably dropped your user because it didn't exist in the source (project ) but did exist in the target (deployment database). Amos. ...Show All
.NET Development FtpWebRequest - Access to IBM AS/400 FTP Server - 501 Character (/) not allowed in object name.
Hello everybody I'm trying to communicate with an AS/400 FTP Server. As a first try I just execute the WebRequestMethods.Ftp.ListDirectory method, which translates to the NLST FTP command. Doing the same accessing a Microsoft FTP Server or a UNIX FTP Server works fin. This is the code to get the listing: Dim Uri As System.Uri = New System.Uri(listUrl) Dim listRequest As FtpWebRequest = CType (WebRequest.Create(Uri), FtpWebRequest) listRequest.Credentials = New System.Net.NetworkCredential(User, Password)listRequest.Method = WebRequestMethods.Ftp.ListDirectory listRequest.KeepAlive = False listRequest.UseBinary = False listRequest.UsePassive = False Dim listResponse As FtpWebResponse = CType (listRe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C vs C#
Currently I'm taking a C class at my university and I was wondering how different is C# from C code wise. Thanks Sebastian You make me so happy, it doesn't seem like I am the oldest one here. But I can concur with latest speaker here. I also found the transition pretty natural from C and assembler to C++ and then java/C#. I agree that you might be a bit sloppy with java / C# since you have the garbage collector but otherwise they are superior in handling your difficulties. I also found the concept of DirectX/3D math much harder to pick up than the programming. But now it works pretty decent :) Good luck ...Show All
Visual Studio 2008 (Pre-release) WCF Performance hit when connecting through proxy server
I have been struggling with Performance of my WCF Web Service. The problem is whenever we make our Web Service call go through a proxy server in place of direct connection to the server, it takes a lot of time to connect and complete call. Since Server and Client machines are both on same network, we have made the call go through proxy by having the 'Bypass Proxy server for Local addresses' check box unchecked in Internet Explorer on Client machine so that connection is made through Proxy server. In this case the connection is really slow. If we have 'Bypass Proxy server for Local addresses' check box checked than Client makes the direct connection to server which is really fast (15ms compared to 359ms for the same call). I am getting ...Show All
Silverlight (formerly WPF/E) How well does WPF/E and WCF play together?
How much thought have been given to WCF as part of the development plans of WPF/E As far as I can see, you are currently limited to what you can accomplish with standard JavaScript objects, which limits you to XmlHttpRequests. I see some real benefits if I were able to do any type of socket connection, and not be limited to HTTP's push/poll model. With WCF on IIS7, i would be able to do non-HTTP requests on port 80, (port 80 is important to avoid any firewall issues), but as far as I know, I don't have any way of leveraging this from the client-side. Are there any plans to include a new socket object in WPF/E that we can use from JavaScript Flash already have this capability, although it unfortunately only works on ports above ...Show All
SQL Server Generating Scripts for Table Alterations in SQLServer
Hi, I am using SQLServer and I would like to track changes or generate scripts for every change or alteration made to the table.. Please help me with any ideas.. Thank You, Lesego Two ways are common. 1. Profiler. Kind of clunky, but more or less guaranteed to see every change made, and cannot be easily overridden 2. In 2005, use a DDL trigger/Event Notification. I use this all of the time to monitor changes to my databases by other people who have dbo rights in cases where things are too political to give more specific rights. ...Show All
Visual Basic what s the keyboard shortcut access key to close the search window
I open the search window using: Ctrl F How do I close it using keyboard pls as long as the find window is not docked you can dismiss the window by hitting escape in 03 or 05...if it is docked then you must use the menu short cuts to hide the find window.... alt...W....H ...Show All
Visual Studio 2008 (Pre-release) I want to display GroupItem sideways.
The group is specified by using CollectionViewSource and PropertyGroupDescrip tion. GroupItem becomes Vertical. It looks for the method of making to Horizontal. Please help. Thank you. It is possible to have done by specifying GroupStyle.Panel. <GroupStyle> <GroupStyle.Panel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </GroupStyle.Panel> </GroupStyle> ...Show All
Software Development for Windows Vista Radeon 9550 blue screen crash
i have radeon 9550 and im using windows vista ultimate everything works fine except in crashes time to time with blue screen. my current driver for radeon 9550 is (Microsoft Corporation - WDDM) vr. 8.31.100.321 is the driver from ati radeon website for windows vista betteR just dont want my computer to crash thats all i want please help I have the same vidcard... I installed the ATI Catalyst drivers and works FINE with me! I have 4 months using windows vista and I haven't recived a blue screen =)! ...Show All
Visual C++ noob help
ok i have 3 files game.cpp, game.h, and main.cpp and i get this error main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall game::run(void)" ( run@game@@QAE_NXZ ) Game.h: #ifndef GAME_H #define GAME_H class game { public: bool run(void); protected: bool getInput(char *c); void timerUpdate(void); private: double frameCount; double startTime; double lastTime; }; #endif Game.cpp: #include "game.h" #include <conhio> #include <iostream> #include <windows.h> using namespace std; //fps = 30 #define GAME_SPEED 33.333 bool Game::run(void) { char key = ' '; startTime = timeGetTime(); frameCount = 0; lastTime = 0; while (key != 'q') { while ( ...Show All
Smart Device Development SMS application
Hi, I’m working on a Pocket PC application in VB.Net on Compact Framework. It is required that we develop a SMS module. What is the functionality (code )that should be provided to the Click event of the SEND button. Thanks, the correct code is: Dim smsAddress As IntPtr = Marshal.AllocHLocal(smsAddressTag.Length) The Marshal class is from NetCF.Runtime.InteropServicesname space, which is included in demo VB project Public Shared Function AllocHLocal( ByVal cb As Int32) As IntPtr Try Return WinApi.LocalAlloc(WinApi.LPTR, cb) Catch ex As Exception End Try End Function System.Runtime.InteropServices.Marshal.Copy() is a from d ...Show All
.NET Development DataSet.ReadXml and Empty Datetime fields
Hi all, i'm trying to read a XML datafile (create with a VFP.XMLAdapter) into a DataSet. At the point of reading DateTime fields the reader collapse caused by the empty DateTime field. When i fill those fields there are no problems, but i want empty data!!! How can i manage to read the data into the dataset without getting errors and with the empty datetime fields I'm using VB.net 1.1 (Compact Framework) Dim reader As XmlTextReader = New XmlTextReader( New StringReader(xmlData)) Try Me .pr_DataSet.ReadXml(reader) Catch ex As Exception Finally reader.Close() End Try it looks it is required, it isn't but the ...Show All
Visual Studio 2008 (Pre-release) Adding Web Reference in VS 2005 to WCF Service
Hello, As I’ve found out yesterday, it’s important to create a proxy class for ‘WCF web service’ using svcutil.exe even though it uses 'basicHttpBinding'. If one does it through VS2005's 'add web service' routine, the created proxy allows passing string fields only. All value types doesn't go through. I mean the proxy class looks correct with all fields having correct types. But when I attach the debugger to the WS I see default values only for types like int, short, DateTime etc. Am I doing something wrong nefis Please see my blog post at http://blogs.msdn.com/eugeneos/archive/2007/02/05/solving-the-disappearing-data-issue-when-using-add-web-reference-or-wsdl-exe-with-wcf-services.as ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Chatroom
I personally put up a XNA chatroom to build a community that is already here and to better get to know each other. If you want to quickly inform somebody or get some information or help with something go there. The only problem for me right now is getting idlers in the channel. I know forums are a great way to help people, but sometimes just talking to each other about things like this is even better. Come and idle and help build a community even bigger and also build a place to help each other out. Its XNA Development, its for us. (That would be a sexy slogan). Server: irc.opa-ages.com Channel: #XNA You can use mIRC or any IRC clients in order to get to the chat. X-Tatic wrote: I think it' ...Show All
