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

Software Development Network >> Xenon86's Q&A profile

Xenon86

Member List

Alexey Nayda
blitzy
drugshrink
JavaBoy
Yustme
MMagdy
MaggieChan
volleynerd
C. Hunter
Josue Perez
Richard0610
Jagjot Singh
moreOncoding
chongqing
CraigInGeorgia
RDH123
BGW52
firegod
ringerxyz
Jassim Rahma
Only Title

Xenon86's Q&A profile

  • .NET Development how to 'disconnect' access db while is being copied over

    I have a small c# app using access db. I have a routine to copy the db at runtime to a BACKUP folder. Is there a way i can copy this db over to the runtime data directory, for a RESTORE, within my application, while its running, if the user chooses so thats right. I need to "restore" to a prior database if necessary on demand. The heart the problem is that when a new app is released, it has a default (empty) database (order.mdb). But, on this stand-alone app, there might be a prior order.mdb which can't be replaced, since it has live user data. If i can migrate the original db over to a new release, then I don't need to replace a live db. If you have suggestions on how to do that, I'd really appre ...Show All

  • .NET Development C# Marshalling StringBuilder to char*, always NULL upon entry to function

    Hi, I’m attempting to use the a C library from C# code. The method that I would like to use has the following prototype: long Convert_Geodetic_To_MGRS (double Latitude, double Longitude, long Precision, char* MGRS); My C# code for importing the library is as follows: [DllImport("geotrans2.dll", EntryPoint="#168", CallingConvention=CallingConvention.Cdecl)] private static extern long Convert_Geodetic_To_MGRS (double Latitude, double Longitude, long Precision, StringBuilder MGRS); And here is my C# code where I call the method: double Latitude = 1; double Lon ...Show All

  • Visual Studio Express Editions .dll help

    hello. I will explain my problem I have an application, in that is a webbrowser and I want it to switch to an url on a user specifiet time. but now. I want the code (which I already made) in a remote .dll file (or another one, if you can recommend one) with all the url's it should go to. Example: Select Case timername Case 0 WebBrowser1.Navigate( "URL" ) timername = 1 Case 1 WebBrowser1.Navigate( "URL" ) timername = 2 End Select Why do I want it in a remote So the application can update it when I have an update for the url's and not have to update the whole application. So how do I do that (I don't want it in the resources but in a folder on the hardisk (C)) Note: this application has a use! Uturn, y ...Show All

  • Visual Studio Express Editions template link errors

    I've been looking for a solution for this all day now, and it's driving me crazy. I have a C++ couple of C++ template classes that I'm using in a test executable for a DLL I built. The templates are used in the DLL as well, but in all cases that I use it, to avoid errors, I have all the template code in the header, so when it's included all the code is available for the compiler to do the type resolutions. When I build the DLL, it compiles and links just fine. However, when I build the executable, I get unresolved token and unresolved external symbol errors for the template, but only for the one that I use in the executable, not for the ones used in the DLL. I have tried to change the type temporarily to int and have copied and p ...Show All

  • Software Development for Windows Vista how to encrypt/decrypt the wireless key when using

    I would like to set and get wlan profile to the wireless card driver. I using the wlanapi.dll and get profile success. How to encrypt the key material when setting profile How can I find the document or sample about this topic ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problem with "How To: Animate a Sprite" Tutorial

    In XNA GSE 1.0, I've been looking at a few how-to articles in the documentation. The first few I tried were quite good, but I'm having a problem with the "How To: Animate a Sprite" tutorial. I made a single texture with four frames in it, all the same size (I believe the texture is 255 X 92 pixels, or close to that). I typed in all the code exactly what it's like in the tutorial, but when I run the program, only the first three frames play. Then, they loop back and play again and again, as if only three frames were there. Does anyone know why @wakawaka54: Why are you calculating the Frame information every time a Get*Frame method is called That's probably not a very good idea. A better method ...Show All

  • Visual Studio Express Editions For Each foundFile As String In My.Computer.FileSystem.GetFiles

    How can I pass a multiple filematch pattern like *.bmp, *.jpg, *.png to: For Each foundFile As String In My .Computer.FileSystem.GetFiles( _ My .Computer.FileSystem.SpecialDirectories.MyDocuments, _ FileIO.SearchOption.SearchAllSubDirectories, "*.jpg" ) Thanks ! Is there any way to tie two progressbars to this process ProgressBar1 measures each files copy progress ProgressBar2 measures overall files copy progress Thanks ...Show All

  • .NET Development Generic performance... benefit?

    Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All

  • SQL Server Single sign-on with forms authentication

    Hi, We are using forms authentication as per this article http://msdn.microsoft.com/library/ url=/library/en-us/dnsql2k/html/ufairs.asp frame=true#ufairs_topic3 We want to get single sign-on working in SQL Server RS 2005. Users log on to our web application and we use forms authentication. We want the same logon credentials to automatically log you onto to the report manager too, so that when you navigate from our app to the report manager you don't have to log on again! I used the information from here http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconformsauthenticationacrossapplications.asp to try to get the 2 web apps (Report Server and my Web app) to share the authentication cookies, but it only ...Show All

  • Visual C# How to add a directory structure to a project ?

    I have some code that I need to include in my project. The code is organized in a directory structure, such as: Directory1 - Directory2 - Directory3 - Lots of C# files. - Directory4 - Lots of other C# files I right click on the project, and select Add Existing Items, but it would not retain the directory structure, all files are added to the project directory. If I want to retain the directory structure, the only thing I can do is to manually create a directory structure as the structure of the external code. Go to each directory and import the files in the corresponding directory of the external code. Its the same for both Visual Studio 2003 and 2005. Is there a better way to do it Or let me rephrase m ...Show All

  • Architecture Problems with Owner Draw Menus in an out of process ActiveX Document Server

    My Document Server is written with C++ MFC and built using VS .NET 2003 and is targetted to WinXP and newer. I’ve now run out of ideas on how to resolve my owner draw problem when an OLE container attempts to render my shared menus. Everything is fine when the keyboard is used to activate the menubar items. This is because the container is using WM_NCPAINT etc to create a real screen drawing context. This context is then passed through to the in place frame of my server where it will succeed in drawing the menu items ( WM_DRAWITEM ) When the menu bar item is clicked on with the mouse, however, the container make use of WM_PRINT, WM_PRINTCLIENT to render to a memory HDC. When this HDC is passed to my out of process serve ...Show All

  • Visual C++ Error LNK2019, linking error - please help

    I am currently writing a programme in C which is going to convert roman numerals to arabic numbers, now I don't need help actually writing the programme(I dont think. Though if you see anything obvious let me know!) But I get this error whenever I try and build the solution, I really have no idea why! If anyone can help I'd really appreciate it. 1>------ Build started: Project: roman numeral conversion, Configuration: Debug Win32 ------ 1>Linking... 1>converter.obj : error LNK2019: unresolved external symbol "int __cdecl romanArabic(int,int)" ( romanArabic@@YAHHH@Z) referenced in function _main 1>C:\Documents and Settings\Xin\My Documents\Visual Studio 2005\Projects\roman numeral conversion\Debug\roman num ...Show All

  • Visual Studio Team System Users can no longer connect to TFS

    Hi, I came across a very strange problem. I have a group of developers which connect to TFS regularly. They are all members of the domain group 'Developers' which in turn is a member of the 'Contributors' group of my team project. Some developer, which has been connecting to the server for a some time, can not connect any more and is prompted with the User/Password dialog. No changes were made to the server group membership or the doamin group membership. This happend more than once before with no apparent cause. When I add that user to the 'Contributors' group individually (not through the domain group), all goes back to normal. Any ideas Thanks, Shay Hi, I do not see any e ...Show All

  • SQL Server Copy values from previous row

    I'm guessing this is a fairly straight forward need, but want to make sure I am using the correct set of tasks: In the dataflow, some values I need to carry forward from the previous row, such as a balance that I need to carry forward for the current customer record. This is similar to a running total, only I am not summing anything, but just carrying over from the previous records value (assuming dataset is sorted correctly, first by customer #, then by date). Do I need the Dervied Column transform, and use a variable to store the previous value, or is there another transform that would be better suited Thanks Kory I would do this in a T-SQL, Stored Procedure, or Execute SQL Task, avoiding a c ...Show All

  • Visual Basic List of all necessary conditions and installed DLLs to import data from TXT files using ADO

    hi, I use this code to import data from TXT file into MSAccess . ************** conDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; " & _ "Persist Security Info=False; " & _ "Data Source=" & rngDBFileName.Value conDB.CursorLocation = adUseClient conDB.Open strSQL = "INSERT INTO tblBasicData_Import (" & _ "[Country],[Calendar year],[Global Customer]),.......and next colums " & _ "SELECT " & _ "[Subsidiary],[Calendar year],[Global Customer], .......and next colums" & _ "FROM [" & FileName & "] in """ & FolderName & " ...Show All

©2008 Software Development Network