Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

psasidisrcum

@psasidisrcum
About
Posts
4
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • connecting to SQL express through ADO
    P psasidisrcum

    Hi all, I have SQL server express edition 2005 installed on my computer and using VB in MS Access to run some queries. The VB function looks something like this.. Dim dataRS As New ADODB.Recordset Dim cnnSQL As New ADODB.Connection Set cnnSQL = New ADODB.Connection cnnSQL.ConnectionString = "Provider=SQLNCLI;Server=.\SQLExpress;Database=TestDB;Trusted_Connection=yes;" cnnSQL.Properties("Integrated Security").Value = "SSPI" cnnSQL.Open dataRS.Open "SELECT dbo_Table_1.* FROM dbo_Table_1", cnnSQL, adOpenStatic, adLockOptimistic The code fails though, on the last line with message "Invalid object name 'dbo_Table_1'" (yes, I verified that the table actually does exist in the DB) I must be doing something wrong with the connection string but all the things that I've tried so far haven't worked.. Can anyone offer any suggestions? Thanks in advance,

    Database database sql-server sysadmin security question

  • overloading a variable argument list function
    P psasidisrcum

    Newbie question here. I have a bunch of text that I want to write both to the stdout and to a logfile using fprintf. Currently, I'm using the primitive method of just printing out everything twice, once to the stdout and once to the logfile. I thought about an elegant way of doing this, and the best I could come up with is to overload fprintf so it'll take two FILE* arguments, like fprintf(stdout, logfile "text %d", x, ...) etc. While trying to overload fprintf, however, I ran into difficulties since it takes a variable argument list and the overloading seems to be a lot more complicated. I played around with va_list, va_arg and such but ended up getting nowhere. Is there an easy way of doing this, or can anyone offer some assistance in coding this up? Thanks a lot in advance.

    C / C++ / MFC question

  • learning to work with SDKs and source code...
    P psasidisrcum

    Haha, great assessment. lots of ambition but no idea where to start.. you got that right! My problem isn't so much using various funtions in the SDK, but rather compiling the source code and making sense of the numerous files and directories they usually come with. I've successfully written an audio header reader program for mp3, ogg, ape files, using dll / lib files I downloaded and functions that I looked up in the documentation. But take the Musepack (lossy audio codec) project for example. I downloaded the source code (http://www.musepack.net/index.php?pg=src), unzipped and placed it in a directory. Among the numerous files I'm unfamiliar with, I see a .sln file and open it, in VS.NET2003. But I get a couple error messages along the lines of "The project file 'C:... .dsp' has been corruped and cannot be opened". I ignore all these messages and build the solution, and end up with a bunch of errors. Some syntax errors, some complaining that a file doesn't exist, and indeed they don't exist! I searched for them but couldn't find them. I end up with a similar experience with the foobar2000 SDK (http://www.foobar2000.org/), projects that are supposedly corrupted, files that are missing, etc.. None of these seem to have any documentation on how to build the solutions, so I'm left clueless. I do wonder, however, why I would have to do anything in order to get them to compile in the first place. I wonder if I need to get a book specifically on using VisualStudio? Anyways, thanks so much for your help! It's much appreciated. :)

    C / C++ / MFC tutorial csharp question lounge learning

  • learning to work with SDKs and source code...
    P psasidisrcum

    Hi all, I'm a newbie programmer, somewhat comfortable programming my own applications from scratch in Win32API or .NET. What I'm having trouble though, is understanding and working with other people's code, like various SDKs and source code widely available on the internet. I just don't know what to do after I unzip the file. :( For example, I'd download the source code of some open source application, unzip it in some directory, and notice that there's a bunch of directories, a bunch of project files, maybe a couple solution files, hundreds of .h files, hundreds of .c files and so on and so forth. Forgive my ignorance, but what on earth am I supposed to be doing with all this? I understand that I'd need to compile something, probably, but which project or which solution am I supposed to compile? If I pick a random one and compile it, I end up with a bunch of errors I am clueless about. and then what? I'd have to figure out how the program works, but with hundreds of files floating around, where do I begin? (assuming no helpful documentation...) I've learned to program mostly on my own, reading books and tutorials, but no books out there seem to talk about how to figure out stuff other's have written. Perhaps it's supposed to be obvious. Well, it isn't for me. Anyhow, I know that this forum is filled with experienced programmers, and they all must have had a transition from being able to program things on their own to being able to work with stuff other's have written. So if anyone could share their experience with learning how to do this, I'd be much indebted!

    C / C++ / MFC tutorial csharp question lounge learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups