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

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

Bernie44601

Member List

Ivan.Drew
Asif Hameed
.net sukbir
caseymanus
Aing_d
Evan Machusak
PhilippCH
csharpbird
GetCode
poppy33611
Teo Lachev
Pantomime
Hilley
Otto Ramirez
den2005
intrepid
rguifarro
Bazzer
xRuntime
patanjali108
Only Title

Bernie44601's Q&A profile

  • Visual C++ Problems with Char*'s and LPCWSTR need help

    I am trying to use the openregistrykeyex or openregistrykey function from the windows.h include file and I have the following code HKEY hKey = NULL; char * temp = "String" ; int len = strlen(temp) +1; wchar_t *wText = new wchar_t [len]; if ( wText == 0) return 0; memset(wText,0,len); ::MultiByteToWideChar(CP_ACP, NULL, temp2.c_str(), -1, wText,len); const wchar_t * test = wText; //long tempResult = RegOpenKey(HKEY_LOCAL_MACHINE, test, &hKey); long tempResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, test,0, KEY_READ, &hKey); Neither work and I can't understand the cryptic error codes if someone could help me unravel the error codes error code = Error 1 error LNK2028: ...Show All

  • .NET Development How can I convert this c# code into a regular expression?

    I'm trying to create a "path validation method" to check if a string can be used as a valid path in my program. The path must contain an indication character at the beginning of it which can be either minus, tilde or a dot. In case of a minus character than it must be followed by a number. In case of tilde or a dot than it must be followed by any valid step format. A valid step format is either a s tring enclosed by a sharp brackets , a number or a combination of a string enclosed by a sharp brackets followed by a number without white spaces between the brackets and the number. After the initial step we can have a dot separator to indicate that we have additional steps that must follow the normal step format without the starting indicatio ...Show All

  • Visual Studio 2008 (Pre-release) What limit my connections?

    I set the maxConnections of my netTcpBinding to 1000, and the behaviorConfiguration of my service is like this: <BEHAVIOR name="SampleServiceBehavior"> <SERVICETHROTTLING maxConcurrentInstances="1000" maxConcurrentSessions="1000" maxConcurrentCalls="1000" /> </BEHAVIOR> In my client, I send 200 requests to my service in 200 threads, In every thread, I create a new proxy to connect to my service. In my service, I make the thread sleep 10 seconds before return the response. for I want to simulate multiple clients call the service to do a long time work in concurrency. But I found that my client can't receive all the responses. And there were some timeout excep ...Show All

  • Visual Basic Exception has been thrown by the target of an invocation

    Hi, I am getting an error message "Exception has been thrown by the target of an invocation" when my application is loading a vb.net 2005 form. I am using vb.net 2005 with SP1, and framework version v2.0.50727 Any idea what could be causing this Thanks ok, the part of checking the InnerException property helped big time. The problem was resolved. I had added a project to my solution, and an assembly of the new project was being referenced. That assembly could not be found. So I created that. However, I would like to clarify something for my own information. Currently I have a solution file, that contains 5or 6 projects within the solution file. I add an existing project ...Show All

  • Software Development for Windows Vista Elevating an IE7 toolbar to Integrity Level: Medium

    Hello, I have an IE7 toolbar that needs to write to an Access DB that resides in the Program Files directory. However, because IE7 runs in Protected Mode, the toolbar does not have access to write to the Program Files directory. So, I tried to move the Access DB to the ProgramData directory. Now, I don't get the Access Denied error, but the toolbar doesn't write to the DB that is in the ProgramData directory. Instead, it writes to some VirtualStore directory. Has anyone run into this Does anyone know how to elevate an IE7 toolbar so it runs with an integrity level of MEDIUM Thank you, I solved the problem. I created an external executable elevated to medium level and ported the code to this app ...Show All

  • Visual Studio Tools for Office Is it possible to deploy Office Object with the application to public?

    Dear all, I would like to know if i have a windows application which is probably going to sell on public, and i have some functions which is integrated with Word. Am i able to deploy the Office Object (e.g. Microsoft Word 11.0 Object Library) together Is there any Licensing problem in the deployment Thank you very much Regards George Technically, this isn't the correct place to ask, as the question is not VSTO-technology relatedd. For future questions involving Office automation, the more appropriate venue is http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation&lang=en&cr=US The answer to your question is no, you can't do this ...Show All

  • Visual Basic load form

    as a newbie to vb 2005 I created a password form where the user enter the usual data i manipulate the data etc etc at the end when the password form ends I want to call frmMain.... how do  I do that   Private Sub OK_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim Name As String Dim Password As Integer Dim OfficeNumber As Integer 'Dim frmMain As New Form   Name = UsernameTextBox.Text Password = PasswordTextBox.Text OfficeNumber = OfficeNumberTextBox.Text all the data stuff will be put in here    Me .Close()  frmMain.ShowDialog()      End Sub ...Show All

  • Visual C# Interfacings with Web Application

    Our company dial with other company via Web based application we have access to our account in there site, we enter a lot of request using simple form then we get the results in the same page in table format. What we need to interface (automate) the process between our system (C# .NET 2.0) and there site (Java Servlet JSP Secure), our system provide the information that we need to enter every day in there system and receive there response. How we can make this kind of interface Thank you. SDev Just a quick tip. You may want to contact the "other company" to check if they have a webservice set up for this particuluar task. I know it's a longshot, but it's well worth a phone call. ...Show All

  • Visual C# diff text files

    Does .NET or C# provide tools for creating projects that can "diff " two similar text files, to tell the differences. Any suggestions will be appreciated. Thanks! there is a program called windiff which can do this for you. Alternatively you can create your own from scratch. However here is a link to windiff: http://blogs.msdn.com/brada/archive/2004/12/29/343851.aspx ...Show All

  • Windows Forms Using Progress bar and Status lebel with Web Browser control

    What code do I use, and where do I put it to make the Progress bar and status label in the status bar work according to how the website is loading in the web browser You know, like the progress bar will show the progress of the webpage loading and the status label will state things like READY, Loading (site), Done, Stoped, etc.... Thanks! Landon Well, I can help you with the progress bar part. Place a progress bar named pbrPageLoad somewhere on your form. Now go into the browser progresschanged event and copy this code: double curprogress = (double)e.CurrentProgress; double maxprogress = (double)e.MaximumProgress; double progress = (curprogress / maxprogress)*100; pbrPageLoad.Value = (int)progress; then go ...Show All

  • SQL Server WMI Event Watcher - Pointing directly to a machine name

    Hi, I am using a WMI Event Watcher task to watch for files dropped into a directory over a network drive. It seems to work fine when it is pointed to a physical drive name, but not when I use a machine name. I.e. This works - SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE TargetInstance ISA "CIM_DirectoryContainsFile" and TargetInstance.GroupComponent= "Win32_Directory.Name=\"C:\\\\temp\\\\folder1\\\\folder2\\\folder3\"" This fails - SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE TargetInstance ISA "CIM_DirectoryContainsFile" and TargetInstance.GroupComponent= "Win32_Directory.Name=\ \\\\\\\\machineName \\\\folder1\\\\folder2\\\\folder3\ " The failing code do ...Show All

  • Visual Studio Load in Print Preview

    I am using Reportviewer to produce various local reports for my windows application. Is there any way to set the reportviewer to open in print preview, rather than the full screen, list view All comments/suggestions welcome. Yes. Instead of calling ReportViewer.RefreshReport to view the report, call ReportViewer.SetDisplayMode(DisplayMode.PrintLayout). You should replace the RefreshReport call because SetDisplayMode will do it implicitly, ...Show All

  • SQL Server Row by row operations in sqlserver

    hello, I need to push data from a temporary table into a master table in sql server database(Both tables are in the same database). I need to follow these conditions. tables used: 1. temporary table: Temp 2. master table: Master for every record or row in Temp check if exists(Temp.field1)in Master.Field1 then update Master with this row. else Insert into Master this row. I performed a research through the net, and found various suggestions. like usage of cursors, usage of while loops etc. I have to use nearly 50,000 to 60, 000 rows minimum or even more. Time complexity is also to be considered I request all who visit this thread to place any possible solutions/suggestions how shall i make this task. I thank all in advance ...Show All

  • SQL Server Trouble installing SQL server Help i need it!

    http://i69.photobucket.com/albums/i59/craig20102010/problems/SQLerror.jpg http://i69.photobucket.com/albums/i59/craig20102010/problems/SQLerror2.jpg Above are the errors that i get when im tryin to install SQL 2005 i think its the DATA base side of it i managed to install the Configuration tools and things just cant install the Data base side where u can actually do something with it. That's correct. The full product includes 6 seperate components, one of which is the graphical (and command line) client tools to connect to a SQL Server machine/DB. They're a must if you haven't spent much time with SQL. :) Thanks, Sam ...Show All

  • Visual Basic VB2005 Upgrade, or not?

    Hello, I am not sure if this is the right place to ask this question, but I couldn't find anything more fitting. I am considering getting the Visual Studio 2005 IDE, but I have a reservation. I currently have VS2003, and have heard that the .NET 1.1 framework is falling by the wayside, so to speak. I have used the trial version of VS2005, and like it very much. However, I have heard that VS 9.0 will come out soon, and I don't want to have to upgrade again in a year or two. So, I guess my question is, is VS2005 going to be viable long enough to make it worth the purchase Is Microsoft making the higher level languages like Visual Basic "disposable", in other words, changing every few years Please, don't take me as being an ...Show All

©2008 Software Development Network