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

Software Development Network >> naruto-kun's Q&A profile

naruto-kun

Member List

Peter Lillevold
riga66
Sergio Ordine
GazCoder
Shin Kenshin
tenchyz
Junner2003
sea_
David Sakhelashvili
sharindenver
Thwack
Alastair Q
Jassim Rahma
Anarchy
NetPochi
bk13
Doug 123
Tim Mavers
Carl Bruneau
syndicate
Only Title

naruto-kun's Q&A profile

  • Visual Studio Express Editions FTP and AxInet

    I have a simple VB6 program to get text files from NOAA weather service. I am trying to write it in VB Express 2005. I am having a problem with the AxInet control. Not knowing any better, I am using basically the same code as VB6. It seems to be OK, so far, until I get to the AxInet1.Execute line: Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AxInet1.Protocol = InetCtlsObjects.ProtocolConstants.icFTP AxInet1.URL = "ftp://tgftp.nws.noaa.gov" AxInet1.UserName = "" AxInet1.Password = "" AxInet1.Execute( "/data/observations/metar/decoded/BGKK.TXT" , get , "BGKK.TXT" ...Show All

  • .NET Development Marshaling a struct?

    Hello everyone! I hope this is the correct part of the forum to ask this question, if not I apologize! What I am asking is completely foreign to me, so I also apologize if I say anything wrong or incorrect... I am currently developing a component in C# that implements a TLB... A majority of our code is in C#, but we have a few COM components that need access to it so our interfaces were coded as an IDL. So the code will be accessed from both our COM and C# components. Within the IDL I have a few structs that some of the methods return, like this: interface IPresetData : IDispatch { typedef struct { BSTR name; BSTR surname; }MyStruct; HRESULT GetNextRecord([out, retval] MyStruct* pMyStruct); } Now, from what I have read ...Show All

  • Visual Studio Find | Next Control giving issues in Report having expand/collapse within groups in table

    We have report having Expand/Collapse button.Table is having three level of grouping.However while using Find | Next control from toolbar reportviewer is finding the text and selecting the text in reportviewer but that row is not visible in the report i.e. report is getting scrolled down by few rows. User has to scroll up to see the text found by report. This issue is not coming in simple report i.e. no expand collapse buttons. Can anybody please help me how can i resolve this issue. Thanks Vaneet kumar We have seen this issue when the table contains fixed headers. In that case, the viewer scrolls to the search text but then the fixed header immediately overlays on top of it. Unfortunately we don't have a fix available for this ...Show All

  • Internet Explorer Development Extension loading/unloading

    I have written a VB program which parses through all the open IE windows and allows me to access information from them (events, title, progress, etc.). I wrote this program as a proof-of-concept to find out if it was possible to get relevant information from already open IE windows. What I want to do is make an extension which will be loaded with IE and unloaded with IE. For eg. if I make an extension for Firefox, it is loaded when the browser starts and is unloaded when the last window of the browser is closed. The extension has onLoad() and onUnload() methods, which I can use to perform relevant actions. What is the way to achieve the same for IE Is programming choice limited to VC++ or is there a way for me to adapt my VB program to ach ...Show All

  • Visual Basic Special Characters in XML File

    Hi all, I have a little problem with XML. This XML file is a UTF-8 codeification and most of the times a "tiny square" appears inside the text, I know I can replace the character but I just don't know which character is. Working with VB.NET (System.xml and System.XML.Path), I tried to get the char number but I get two values: 63 and 13 Dim CharWeird As Char = GetChar(xString, 15) ' 15 is the position of the character (zero based) CharWeird = 63 BUT if I..... Dim CharWeird As Double = Char .GetUnicodeCategory(xString, 14) ' 14 is the position of the character (1 based) CharWeird = 13 Not to mention that if I lookup the char inside the string: xString.IndexOf(63) or xString.IndexOf(13) it always returns -1 me ...Show All

  • .NET Development BeginSend and bytes send reported by EndSend

    I was hoping someone could help me understand the number of bytes sent if I am using BeginSend. Let's assume I send 100 bytes of data using BeginSend. In my async callback, if I call EndSend it will return me the number of bytes that were actually sent. My question is under what circumstances will the number of bytes reported when calling EndSend not match the number of bytes I wanted to send. So, EndSend says it sent 50 bytes and I wanted to send 100 bytes. If the case is that EndSend reports only 50 bytes were sent, do I need to resend the remaining 50 bytes again by calling BeginSend again with those 50 bytes From MSDN, the EndSend method: If you are using a connectionless protocol, EndSend will blo ...Show All

  • .NET Development Reflecting Child Objects

    I am getting a MissingMethodException when trying to use reflection to get data from a child object. What am I missing Here are my classes: public class classA { public classB B = new classB (); } public class classB { public int x = 10; } And the code: classA a = new classA (); object ret = a.GetType().InvokeMember( "B.x" , BindingFlags .GetProperty | BindingFlags .GetField, null , a, null ); The name of the field is "x", you don't need to put a B. in front of it. B is known since you are doing InvokeMember on the type of B. object ret = a.GetType().InvokeMember( "x" , BindingFlags .GetProperty | BindingFlags .GetField ...Show All

  • Visual C++ customizing dynamically icons in ADUC (Active directory Users and computers

    Hello, I want customizing dynamically icons in ADUC for even class independently from/to each other. For example for user authenticated with password it show icon, without password another icon Or for male user, view icon male, for female user, view icon female. Can I cast function that use active directory to extract icon Or that can be a solution to extend ShelView for MMC It's possible Thanks. -------------------------- Best Regards, Foued Please use the Microsoft newgroups for this kind of question: http://msdn.microsoft.com/newsgroups This forum is for C++ language and compilation issues only. ...Show All

  • Visual C# Accessing same memory from managed and unmanaged code

    I have a legacy C++ DLL code which I am using from a .NET application written in C#. The C++ DLL code can allocate memory and pass back the pointer to the C# code. The C# code can then change some of the members of the object/structrue and C++ DLL can use the changed members. I have already created a wrapper class in C# with the necessary Import statements and struture declarations with the marshalling attributes. I can call the C++ DLL methods and get back the pointer to the object. But this object appears to be the copy of the object in the C++ DLL. So when I change the values and again access them in the C++ DLL they are unchanged. How can get access to the same memory location so that I can change the members in either C++ DLL ...Show All

  • Visual Studio 2008 (Pre-release) IsDisposed equivalent on WPF

    I need to know if a form has been closed so that its instance is no more usable, does WPF has a sort of IsDisposed property counterpart Thanks Corrado You can write a helper method to check it: public class WindowHelper { public static Boolean IsDisposed( Window window) { return new WindowInteropHelper (window).Handle == IntPtr .Zero; } } Sheva ...Show All

  • Software Development for Windows Vista RMTool problem

    I have an (unmanaged) application that handles both WM_QUERYENDSESSION and WM_ENDSESSION. The messages are received when Windows Vista is restarted, but not when the rmtool is used. This is the output: Starting Session StartSession() returned 0 SUCCESS: StartSession() Session Key: a476f63126a98d40aed4718200880ec6$$ Registering file RegisterResources() returned 0 SUCCESS: RegisterResources() Getting affected apps. RmGetList() returned unexpected error, 0x5 RmGetList() failed. Ending Session EndSession() returned 0 SUCCESS: EndSession() What could be going wrong No it is not a VB6 application. However I think I just found the problem to be in Virtual PC (I should have mentioned I was ...Show All

  • Visual Studio 2008 (Pre-release) Hiding minimize,maximize and close buttons in Mediacenter

    Is this possible to hide minimize,maximize and close buttons in Mediacenter......If yes...Please provide me the code or the tool to do that. Actually i am working on a application with runs in the windows mediacenter and i want to control the minimize, maximize and the close buttons of media center in my applicatio Yes,if you built a Media Center yourself but controlling the MediaCenter thats built into the into the O/S. Well thats not possible unless Media Center has that option to hide those buttons. Which i'v never seen cause i have XP Pro with Media Center 2005,so sorry to say i dont think its possible. ...Show All

  • Visual Basic Printform and windows2000

    I'm getting an error Printwindow entry point not found in user32.dll with my application running on machines with windows 2000. They are all uptodate with the updates and all works fine on Windows XP. I've made sure I put everything as include on the publish. Any help would be appreciated. The date on the user32.dll is 4/21/05. Thanks I tried it in Windows 2000 and use the compatibility mode It did show me a correct print preview window but I have not actually printed it. Little question: How can I reposition and resize the preview window ...Show All

  • SQL Server Integrated Security doesn't work - "Not associated with a trusted SQL Server connection." Error

      Hi, I have a piece of Java code that needs to connect to SQL 2000 (SP4) using Windows Authentication. It's running on Windows Server 2003 SP1. I tried JDBC v1.1 and followed the code from the following blog: http://blogs.msdn.com/angelsb/default.aspx p=1 But still get this error as shown below. Any help appreciated. I am using JDK1.4.2, "sqljdbc_auth.dll" is located under "E:\SQL2005JDBCDrv\sqljdbc_1.1\enu\auth\x86", also made a copy under "E:\JavaTest" and "C:\Windows\System32" but still won't work. Cheers Allan   =========================================================== E:\JavaTest>javac -classpath ".;E:\JavaTest\sqljdbc.jar" TestW2.java E:\JavaTest>java -classpath ".;E:\JavaTest\sq ...Show All

  • SQL Server SQL Server 2000 Connects to Remote DB but not Local DB. Why?

    I am using MS SQL Server 2000, installed on my local machine. I use JCreator 3.50 as my development IDE for Java. I have Norton Internet Security, but it does not block port 1433, which I use for SQL Server. Windows Firewall is turned OFF. My hard drive died, and my backup died then as well (it had been fine 1 week before). I had to start from scratch. I installed Windows XP SE2, JDK version 5 (version 1.5.0_06, I had previously used 1.40) and SQL Server 2000 with SP 2 as well. When it didn't work, I uninstalled SQL Server 2000 and did a clean install of SQL Server 2000. Instead of the default instance, I gave the instance a specific name, so I would know what to put in the Java code. I can connect with a remote DB using the standard URL a ...Show All

©2008 Software Development Network