News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Iczelion's ODBC example

Started by Ryan, October 24, 2012, 10:23:56 PM

Previous topic - Next topic

Ryan

I would like to put this out there in case someone else has the same problem I had with the example.

I was having trouble trying to assemble Iczelion's ODBC example.

http://win32assembly.programminghorizon.com/odbc5.html

I was getting assembly errors in windows.inc.  My primary method of assembling files is through the Assemble & Link menu item in QEditor.  Iczelion included a makefile with the zip.  I realized it included the /Cp switch.  Using the command line with that switch is an option, or you can include
option casemap:none
under the model directive.

dedndave

yes - the Iczelion examples need a little update
the masm32 package has improved much since the tutorials were written
the examples also show many PROTOtypes that are no longer required

TouEnMasm

Fa is a musical note to play with CL

jj2007

Quote from: dedndave on October 24, 2012, 11:10:03 PM
yes - the Iczelion examples need a little update

Works fine with the following changes:
1. Replace StrLen with xStrLen or similar
2. Use masm32rt.inc as follows:
include \masm32\include\masm32rt.inc
uselib odbc32

;.386
;.model flat,stdcall
;include \masm32\include\windows.inc
;include \masm32\include\kernel32.inc
;include \masm32\include\odbc32.inc
;include \masm32\include\comctl32.inc
;include \masm32\include\user32.inc
;includelib \masm32\lib\odbc32.lib
;includelib \masm32\lib\comctl32.lib
;includelib \masm32\lib\kernel32.lib
;includelib \masm32\lib\user32.lib

IDD_MAINDLG                     equ 101
...