devxlogo

Tip Bank

Assigning C-strings

Question: I am just beginning to learn C++ and I’ve stumble on an error that I cannot figure out despite all my efforts. Here is the code where I’m having

Initialization of an Array of Classes

Question: A common practice in C is to do something like this to initialize an array of structs: typedef struct {float x,y,z;} Vector3;Vector3 VecList[] = {{1,0,0},{0,1,0},{0,0,1}};// Now VecList[0] = {1,0,0};//

Buffered Object Streams and Sockets

Question: How can I use buffered I/O Object streams over a socket and guaranteetransmission even when the packet object is smaller than the buffersize? I want the efficiency benefits of

Linking a *.c with a *.h File

Question: As a developer new to C (I’m using Borland C/C++ version 5), I am trying to understand the method of linking *.c and *.h files within an application. First

EJB Scalability

Question: One of EJB’s obvious design goals was to provide an environment thatcan scale up to meet the demands of enterprise applications. I’mcurious, however, about the other end of the

Use a Where Clause in SQL Instead of a Filter

Question: Here is a snippet of my code: set conn = Server.CreateObject(“ADODB.Connection”)conn.open “gorillaclasses”set rs = Server.CreateObject(“ADODB.Recordset”)stmt = “SELECT class,time,instructor FROM ” & clubtable rs.open clubtable, conn, adOpenStatic,,adCmdTable %>rs.filter = “dayslot

GetFileVersionData – Retrieve file versioning information

Private Declare Function GetFileVersionInfoSize Lib “version.dll” Alias _ “GetFileVersionInfoSizeA” (ByVal lptstrFilename As String, _ lpdwHandle As Long) As LongPrivate Declare Function GetFileVersionInfo Lib “version.dll” Alias _ “GetFileVersionInfoA” (ByVal lptstrFilename As