o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Debugging and GetPrivateProfileString -

Hi everyone, this is my first time here.. and I hope somebody have encountered this problem before...

the thing is that, I have an app that gets values from ini and is using API
GetPrivateProfileString
it is fine when I run the application as an exe, but then if I debug it.. the procedure can't get the desired data even if it is already pointing to the right ini file...

Why is this so?

Any help is appreciated thanks.

 

Debugging and GetPrivateProfileString -
Hi everyone, this is my first time here.. and I hope somebody have encountered this problem before... the thing is that, I have an app that gets values from ini and is using API GetPrivateProfileString it is fine when I run the application as an exe, but then if I debug it.. the p


GetPrivateProfileString -
what's wrong w/ this........ GetPrivateProfileString (App.EXEName, strKey, "", strValue, 1024, strINIPath) ? it just returns the Default(""), even when there is definitely a value that should be returned. thnx!


GetPrivateProfileString question [resolved] -
Can I do this? GetPrivateProfileString("General", "version", "", strBuffer, 30, "http://www.somewebsite.co.uk/config.txt") I want to have my VB6 app check for updates online - but this doesn't seem to work. Simon


Debugging in ASP .Net turned off -
Hello everyone. Somehow in .Net I turned off debugging for my ASP programs. I think it was a windows message box that came up and asked me if I wanted to turn debugging off. For some reason I clicked on yes and now when I set break points in my ASP programs in .Net, it does not stop


Run-time in VB or standalone EXE -
In my program I am currently implementing a debugging system to help me locate errors and to help optimizing my source codes. This debugging of course takes some of the system ressources, and I would therefore like to determine whether the program is run as EXE (compiled - no debugging


debug options in IIS -
Hi group, Can someone explain me the use of the debugging options in IIS: WebSite Properties => Tab: home directory => configuration => tab: app debugging (unc)check: - enable asp server-side script debugging - enable asp client-side script debugging I just read an


ASP Debugging -
Can anybody point me to some asp debugging techniques or debugging tools. Prefferably I want to jump from line to line with a function-button or something....


retrieve from ini with getprivateprofilestring -
I am having trouble retrieving from an ini. I only get a blank string. Any help would be appreciated! Here's my code: Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal


debug Error -
I am trying to open my .exe which resides on another machine on my network,the directory and .exe is shared, but I keep getting this JIT Debugging message: JIT Debugging Failed with the following error: Class not registered Please check the documentation topic 'Just-in-time debuggi


GetPrivateProfileString, not from file, from string -
I'm using the GetPrivateProfileString function to read INI's, it does what I need it to do, but I need to make it so instead of running the function on a file, I need it to run the function on a string. Right now, I have my app writing the string to a file (String is from a MySQL), the


GetPrivateProfileString problem in Win 98 & ME -
Hi I have a large Ini file that contain many texts. I use the API function: "GetPrivateProfileString" to get the text i need. All works ok in 2000 & XP but in 98 & Me i get empty some empty strings. I created a small project that get 3 texts from 3 locations: to


debugging code ! -
this in the options window ! under debugging item "Changes in Visual Basic and Visual C# Code :" 1-allow me to edit C# files while debugging 2-allow me to edit VB files while debugging Shouldn't this option allow me to debug the code while it's running as in VB6?I t


GetPrivateProfileString in Vista -
Hi there. Our VB6 application runs well on XP. Now one of our client has upgraded to Vista. He said that he has managed to install and run our application on Vista. But seems that program can't pick up the old settings by GetPrivateProfileString function (the settings are stored i


Running Add-Ins at run-time -
Hi Guys, When I am debugging code at work, I have to deal with a lot of different recordsets. If I want to view the contents of the recordsets when debugging I have to use the locals window, which I personally find a bit crap to use. I therefore wish to write an add-in that can


Loading ini file values -
I'm using the GetPrivateProfileString API function to read all the values stored in the app's ini file at program start. The way I do it is, I make repeated calls to GetPrivateProfileString and at each call one variable is read. Everything works fine but then I thought, does it make


GetPrivateProfileString - Removing '0' character from string -
I'M using the GetPrivateProfileString API and I just realised it was causing an error to mycode. I used the CIniFile class provided on vbworld. Look carefully at the line in red, it fills the var all with 0. I need to remove them after, how do I achieve this ? Code: Public


ASP.NET debugging @#%&! -
i miss soooo much those days, when a new computer was still a great thing to get... A new computer. In the old one everything worked fine, but in the new one (both are XP pro SP2) asp.net debugging with vs.net 2002/vb doesn't work... i get this error in vs.net 2002 when trying


Need Help With Debugging -
Maybe this also fits in teh Game Forum but I decided to put it here. A while ago I bought a eBook about C++ and I printed a Sample Code form it. Now (3years later) I lost my book (I did format my C) And I found back the old missing papers about the Sample Game for C++. Now I ma


Bug with VS.Net 2003 SQL Server Debugging feature -
My app keep on throwing a : System.InvalidOperationException with the message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. since upgrading to VS.Net 2003. It seems that with SQL Server Debugging turned on in : Project ->


Understand Code -
Dim lRet As Long Dim buffer As String * 100 lRet = GetPrivateProfileString("System", "Setting", "FAC_C", buffer, Len(buffer), sfile) lRet return value is 5 sfile is \\server1\microsoft\code\app\export\application.ini What is GetPrivateProfi


Read INI (getprivateprofilestring)...max of 255 characters!! -
Okay, here is the code im using to read files: Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVa


Error while trying to run project -
Unable to start debugging on the web server. Debugging failed because Integrated Windows Authentication is not enabled. How do I enable it? Thanks


connection strings and ini file -
anyone got an example of how to read server and database name for a sql server from an ini file in .Net. In vb.6 i would use an api call to GetPrivateProfileString... then simply from a function use the following code: Quote: retval = GetPrivateProfileStri


[2005] A question bout debugging -
So I was reading through the forums and some guy asked about some exe or something and I was like hmmmm I wonder. Anyways someone mentioned the exe in the bin folder being for debugging, and I never really thought to much about that exe. I know it is slower, does it have any benefits t


INI Help -
I am trying to read multiple items from an INI file located in the same directory as my application. I can read different areas of the INI file but I cannot display them or use them in the same msgbox. Please see code below: Private Declare Function GetPrivateProfileString _ Li


Debugging C++ programs as in VB -
In Visual C++ it is possible to step thru application using F10 or F11. However, while debugging VB program, one can find Print VariableName <Enter> in debug window and thus examine variable value. Is there any similar way in VC++? Thanx.


VB and Stored Procs -
Is the data environment any good at debugging & creating stored procs? One of the things I love about VB is the GREAT inbuilt debugging capabilities. Stored procs on the other hand are notorious for their difficulty to debug; Does the VB data environment offer VB-debugging like cap


Disable MSVB Debugger... -
Is there anyway to disable script debugging through code in vb6. For example my webbrowser triggers script errors when it goes to certain pages and opens up the debugger. Can i tell the debugger to exclude my program from the debugging ?? i know that in Internet explorer the disable sc


Testing and Debugging -
What is the difference between testing and debugging? Is it possible to design a complete set of test cases that will uncover all the bugs in a program?


Disable script debugging in IE -
Does anybody know how I can make IE stop enabling script debugging? I keep disabling it but then sometimes it just enables itself again, it's really really annoying. It's not like I can do anything about the bad scripts, they're not my pages, so why even ask?


Debugging w/ SQL server -
Is there a way to step through a stored procedure, in a similar way to how you do with .NET source? Small procs aren't bad, but sometimes troubleshooting/debugging is a nightmare on larger procs.


Creating a COM in VB.NET using Class Template -
Hi, I am using VB.NET to develop a DLL file which i will call from any application. So Firstly i have created a class Experiment-Class. Then in the properties, configuration properties, Debugging in Start Action put an External Application for Debugging. After debugging i g


SQL Debugging Tool -
Does anyone know of any good SQL debugging tools? I have the evaluationo of SFI's SQL Programmer 2001, but I would like to evaluate other tools before making a purchase decision. Any help would be appreciated...


[2008] Debugging Troubles -
I have a DLL library I referenced in and when my debugging line goes on a line of code that uses this DLL I get an error say "The source file is different from when the module was built. Would you like the debugger to use it anyway.


Debugging DLLs -
I was wondering if anyone could help me with debugging visual basic dlls when they're being used by a web application. Thanks, Neil


COM+ and VB6 (Debugging , Concurrency) -
COM+ and VB6 (Debugging , Concurrency) 1, How will be Test & debug a COM+ components. 2, How can we implement CONCURENCY Control in VB6 using COM+. Shall we make any changes to our VB6 code to accomplish this Anoop & Harrison Enthusiastic COM Aspirants


How to debug code -
Is there a way or addon that lets me REALLY watch my variables as I'm in debug mode? In the VB standard window while debugging, I can't see the values of the elements of arrays. How can I? This would make debugging a LOT easier...


Debugging with SourceSafe * RESOLVED * -
Just looking for any Tips & Tricks anyone might have using SourceSafe and debugging. I'm used to working in a small shop where all the code was in the project and I could step through it in IDE. Now I'm in a large shop that only the core logic is in the projects and any routine


debugging DLLs that are made in C -
i need info on Debugging a DLL made in C that is called through a VB program. Can anyone help me?


Querying An INI Key -
How do I get the value of a key from an INI file? I'm using the GetPrivateProfileString code.