Pro*C/C++ problem
I'm just trying to get Pro*C/C++ to work using VC++ on an NT platform (This is my first shot at Pro*C/C++).
I can get the code to pre-compile , compile, and link but when I attempt to connect to the database I get an Access Violation in SQLLIB80.dll .
Precompiler results with the lines below - Does the first
sqlcxt() parameter make any sense!?
EXPANDED CODE:
username.len = (unsigned short)strlen(strcpy((char *) username.arr, "testuser"));
password.len = (unsigned short)strlen(strcpy((char *)password.arr, "testpwd"));
dsname.len = (unsigned short)strlen(strcpy((char *)dsname.arr, "mercury"));
// Register sql_error() as the error handler
/* EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error:"); */
/* EXEC SQL CONNECT :username IDENTIFIED BY :password USING :dsname; */
struct sqlexd sqlstm;
sqlstm.sqlvsn = 10;
sqlstm.arrsiz = 4;
sqlstm.sqladtp = &sqladt;
sqlstm.sqltdsp = &sqltds;
sqlstm.iters = (unsigned int )10;
sqlstm.offset = (unsigned int )5;
sqlstm.cud = sqlcud0;
sqlstm.sqlest = (unsigned char *)&sqlca;
sqlstm.sqlety = (unsigned short)256;
sqlstm.occurs = (unsigned int )0;
sqlstm.sqhstv[0] = ( void *)&username;
sqlstm.sqhstl[0] = (unsigned int )22;
sqlstm.sqhsts[0] = ( int )22;
sqlstm.sqindv[0] = ( void *)0;
sqlstm.sqinds[0] = ( int )0;
sqlstm.sqharm[0] = (unsigned int )0;
sqlstm.sqadto[0] = (unsigned short )0;
sqlstm.sqtdso[0] = (unsigned short )0;
sqlstm.sqhstv[1] = ( void *)&password;
sqlstm.sqhstl[1] = (unsigned int )42;
sqlstm.sqhsts[1] = ( int )42;
sqlstm.sqindv[1] = ( void *)0;
sqlstm.sqinds[1] = ( int )0;
sqlstm.sqharm[1] = (unsigned int )0;
sqlstm.sqadto[1] = (unsigned short )0;
sqlstm.sqtdso[1] = (unsigned short )0;
sqlstm.sqhstv[2] = ( void *)&dsname;
sqlstm.sqhstl[2] = (unsigned int )42;
sqlstm.sqhsts[2] = ( int )42;
sqlstm.sqindv[2] = ( void *)0;
sqlstm.sqinds[2] = ( int )0;
sqlstm.sqharm[2] = (unsigned int )0;
sqlstm.sqadto[2] = (unsigned short )0;
sqlstm.sqtdso[2] = (unsigned short )0;
sqlstm.sqphsv = sqlstm.sqhstv;
sqlstm.sqphsl = sqlstm.sqhstl;
sqlstm.sqphss = sqlstm.sqhsts;
sqlstm.sqpind = sqlstm.sqindv;
sqlstm.sqpins = sqlstm.sqinds;
sqlstm.sqparm = sqlstm.sqharm;
sqlstm.sqparc = sqlstm.sqharc;
sqlstm.sqpadto = sqlstm.sqadto;
sqlstm.sqptdso = sqlstm.sqtdso;
sqlcxt((void **)0, &sqlctx, &sqlstm, &sqlfpn);
hi
my file is....
include=/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-redhat-linux/2.96/include,/usr/include)
include=(/usr/include)
include=($ORACLE_HOME/precomp/public,/usr/include)
include=$ORACLE_HOME/precomp/hdrs
include=$ORACLE_HOME/tpcc2x_2/src
include=$ORACLE_HOME/precomp/include
include=$ORACLE_HOME/oracore/include
include=$ORACLE_HOME/oracore/public
include=$ORACLE_HOME/rdbms/include
include=$ORACLE_HOME/rdbms/public
include=$ORACLE_HOME/rdbms/demo
include=$ORACLE_HOME/nlsrtl/include
include=$ORACLE_HOME/nlsrtl/public
include=$ORACLE_HOME/network_src/include
include=$ORACLE_HOME/network_src/public
include=$ORACLE_HOME/network/include
include=$ORACLE_HOME/network/public
include=$ORACLE_HOME/plsql/public
include=$ORACLE_HOME/otrace/public
Similar Messages
-
i have just subscribed for a monthly billing for my acrobat pro XI, the problem is i have clicked on the link on the email that have sent me to activate it but its still not allowing me to acess this and see my PDF's, how to i activate my new license?
Can you explain the problem in more detail - "not allowing me to access" isn't clear to me. If you get any errors, please give the full wording. If you just don't seem to have any useful functions under TOOLS, make sure you are NOT still running Adobe Reader.
-
Titanium Fatal1ty Pro SPDIF game problem
(Titanium Fatalty Pro SPDIF game problem hi all,
sorry if this issue reported in the past i but i could not get any answer on any relati've posts, the terminology was so complicated
i buy?a new pc with a Titanium Fatalty Pro sound card, i use Vista sp2 x64, the sound card is connected to my external amplifier with SPDIF out in order to get surround sound for my movies and my games and here is my problem
any movies format with surround sound play perfect with out any problem any kind of movie DVD, dvix, mkv?files?etc
but non of the games i play?use the surround system, why is that? is any?kind of special settings needed to be done? how is possible to get surround to movies and not to the games?
thanks you all for your time ?,Re: Titanium Fatalty Pro SPDIF game problem? this is really coincidence - I just posted on the very same topic 5 minutes ago.
for games just go to the Console Entertainment mode > Encoder > Dolby Digital. Although this is not documented I believe what happens is that the sound card encodes the 6 digital channels onto Dolby Digital mode and transfers this over SPDIF. Kok-Choy actually recommend using the standard analogue cables (and he has a point as you are actually upcoding an existing game signal onto Dolby so that your digital receiver can then decode this down to 6 channels - seems a pretty useless overhead)
for video - I am curious to know what you do - I can either get 96/24 bits on the display of my z5500 with a direct signal but the z5500 receiver then tells me that this signal is only in dolby ProLogic II (and not DD or DTS). As alternati've I use again the encoder and have to select for EACH FILM WHAT IS BEST DOLBY DIGITAL OR DTS. Pls explain what settings you use.
thanks -
Premier pro play back screen goes black a freezes every 15 minute . This is my second mac pro with identical problems.
SOLVED!!!!!
SO I did some more digging around and read ATI cards seem to overheat easily. I knew the fan was working, but after closer inspection I realised there was ALOT of built up dust on the card and clogging the fan and airflow. Blew it out with alot of compressed air, stuck it back in the Mac and BAM...no black screens. I tested it by streaming 6 video sources...doing 2 screen captures at once as well as watching a HD movie in fullscreen. Did all this for 30 minutes and no crashes. I also downloaded an app to monitor the temps inside the computer and the expansion bay stays at 41 degrees. No clue what it was before but obviously it was hotter than that. So my problem is solved! Funny that 10.7.5 made the card work harder. I wonder if its off loading some CPU stuff to the GPU for processing more than 10.7.4 so its just working a bit harder and so it heats up faster.... -
Canon pixma pro 9500 having problems with my print out. colors are glazed and missing colors
canon pixma pro 9500 having problems with my print out. colors are glazed and missing colors
i have prfiled the mac and printer wiht colormunki and uplodated the profile sucessfully
i set the printer to correct icc profile
print out comes out same with glazed colors and missing tones/colors
however when i use the same printer on windows and with light room, following same icc profile, colormunki calibrated profile, the print our are excellent.
i have also tried using printer manage profile using the Mac and Aperture and get same poor prints
can you please assist and thanksI've a Pro9000 and also use Colormunki successfully.
When I use Colormunki, I calibrate both of my monitors and the printer/paper combination. Colormunki saves the generated profiles to the correct places -- I don't load or change any profiles after that as that would mess-up what the Colormunki had just done for me, and this would likely mess-up the prints.
Though I double-check the settings in the print dialogue, the choice for the printer handling things is already grayed-out. Colorsync handles it all just fine. -
System is Linux Mandrake 6.0 with Oracle 8i, with the 8i patch
applied.
What a nightmare that install was! Lots of permission problems,
unreadable directories, programs with no execute permission on
them and so on.
I now have a database up and running, and am trying to get Pro*C
working. The code was written on RedHat 5.2 with Oracle 8.0.5,
and worked fine there, so I know it is not a fundamental code
problem!
I have patched the pcscfg.cfg file as detailed in the patch FAQ
(with modifications for the slightly different paths under
Mandrake Linux).
When I compile the Pro*c file, I get many "undefined reference
to 'dbcon'" and "undefined reference to 'ctx'" errors from the
linker. This occurs whether I use a pre-defined list of specific
libraries in my own Makefile, or if I use the standard
demo_proc.mk makefile. I have used nm(1) on every place I can
think of, to try to find the required library/object, but to no
avail.
I appreciate that Oracle have so far only certified Oracle for
Linux against Redhat 6.0, but surely Mandrake can't be THAT
different ;-)
Does anybody have any ideas, known problems etc? I REALLY HOPE
that I don't have to switch to Redhat as the only solution - no
problem with Redhat, it would just require a tedious and
complicated system rebuild, which I don't have the time to do :-(
TIA
Mike Holden
nullRobert B gin (self) (guest) wrote:
: Robert B gin (guest) wrote:
: : Since I've last posted, I've installed RedHat 5.2 and
ditched
: : Slackware!
: : (btw, what a breeze - Hat's off to RH! very nice install!).
: : I've then installed oracle, have managed to setup
tnsnames.ora
: : so I can connect via sqlplus to my remote database (on
: VAX/VMS).
: : But now I have Pro*C linker problems with:
: : make -f demo_proc.mk build OBJS=test.o exe=test
: : (blah,blah,blah)
: : /usr/lib/crt1.o(.text+0x36): undefined reference to `main'
: : make: *** [build] Error 1
: : Does anybody out there have a similar problem?
: : Rob
: Duh! forget it... (EXE has to be caps... RTFM)
: (cryptic error message though?)
: works great!!!
Could you please tell me where I can get demo_proc.mk file
for Linux (RedHat)?
Thanks
null -
Hi
Please don't make multiple posts, your question has been answered in your other thread.
I have imported my music from my iPhone to my Mac book pro. The problem is that now I can't listen to it. It's stating that my computer is not authorized. How can I authorize?? -
Macbook pro touchpad/curser problems.
macbook pro touchpad curser problems. typing randomly jumps to wherever the curser is resting at the time. unbelievably maddening. multiple devices same all have same problem. hard to believe we cannot find anything on the apple site about this. MANY complaints outside of this site on this issue... clearly a touchpad/battery design flaw being ignored by Cupertino. during the writing of this post, the curser jumped randomly and started typing in a different location six times. IMPOSSIBLE to use as a word processor since typing becomes quite frustrating. HELP. any ideas? Fanboy and shareholder. three macbook pros in the house...all the same problem. (please do not offer separate keyboard as solution...this is a laptop, not a Surface Pro...)
Go step by step and test.
1. Restart
2. Shut down the computer.
Clean the trackpad with moist not wet microfiber cloth.
System Preferences > Point & Click
Try turning off three finger dragging and then turning it on after testing.
3. Is there any Bluetooth device nearby with failing batteries? If so, replace the batteries.
4. Reset PRAM: http://support.apple.com/kb/PH14222
5. Reset SMC. http://support.apple.com/kb/HT3964
Choose the method for:
"Resetting SMC on portables with a battery you should not remove on your own".
6. Close all windows and quit all applications.
Click the Spotlight -the magnifying glass icon- in the menu bar. Enter Disk utility in the box.
Select Disk Utility from the drop down. When the Disk utility window opens up,
select Macintosh HD, then First Aid.
Click Repair Disk Permissions button.
Ignore the time remaining estimate. -
Why do I get - 'This message has no content' - with some e-mails on my iPad when the same messages can be received on my Mac Book Pro without any problem and how can I fix it?
Is this a POP (POP3) email account? If so, you MacBook Pro may be retrieving the email and deleting it off the server before your phone can. Another possibility is that both your Mac and your phone are trying to retrieving it at the same time, and the POP server, which will only allow a single email client connection at a time, is locking out your phone resulting in the "has not been downloaded from the server" error.
-
Updates fail with error 1328 I have re-installed XI Pro twice without problems.
2
William D. Burstow, CPG, QP
Consulting Economic Geologist
Tel: 541.573.1078
Email: <mailto:[email protected]> [email protected] -
Hi. I am not able to update the Adobe Flash Player on my MackBook Pro. The problem I am getting is a blank page for Step3. Can someone help please?
If you already have an older version of Flash Player, open the Preference pane and select Check Now... under the Update portion under the General tab:
You shouldn't have to install a new version from the website (I'm not even sure if you can) if you've already installed Flash Player.
Clinton -
Telstra Palm Treo Pro & Whereis Navigator problem
Hi, hoping this might save some time for other Telstra users subscribing to Whereis Navigator to take advantage of the GPS capability of the Palm Treo Pro.
The problem: when trying to open Whereis Navigator there was intermittant account (you subscribe to Telstra for this service) authorisation problems. The error message was along the lines (can't recall verbatim), "can't verify account authorisation, please try again later".The solution: On treo, open internet explorer, go to wap.telstra.comthen to 'my account', then 'Locational preferences', then 'my location settings', then tick 'allow me to be located' and 'allow a GPS location'. After this was done, no more problems.
Post relates to: Treo Pro (Telstra)
Message Edited by englundm on 10-22-2008 03:27 AMFurther update on above posts from problems during WhereisNavigator critical updates.
This from garmin/Telstra;
"Please have the customer try the following: ·
Open Internet Explorer on their device.·
Go to settings and clear the browser cache (not having the device in front of me at the moment, I can’t give more specific directions)· Re-start Whereis Navigator and click View Details·
Click the download link If this still fails, a secondary solution is to have the customer enter the following URL directly in to their browser: http://offboardnav.whereis.com This will take them to the same download site, but will remove the extra step of opening the application. "
Once I cleared the browser cache, the critical update install from the 'view details' prompt of the update within WhereisNavigator worked fine. Note on this occasion it didn't work (as it has with previous critical update istall problems) to navigate to the URL http://offboardnav.whereis.com and install directly. -
My 15" macbook pro have big problems identifying and connecting to my wireless network
my 15" macbook pro have big problems identifying and connecting to my wireless network. I have no problem connecting to my neighbour´s. Also I have a 13" macbook pro, a 13" macbook, 2 ipads and 3 iphones (3, 4 and 5) and none of these have any problems connecting to my wireless. My 15" is running Mac OS X 10.7.5, has a 2.66 GHz Intel Core I7 proc and 8 GB Ram
Hi Frodey,
Thanks for using Apple Support Communities. This article has steps to take to troubleshoot connecting to a wireless network and may help:
Wi-Fi: How to troubleshoot Wi-Fi connectivity
http://support.apple.com/kb/HT4628
Cheers,
- Ari -
How can I reinstall Abode Acrobat Pro? Had problems when first downloaded and had to uninstall.
You can refer to :
Acrobat Learn & Support
Installing, uninstalling Acrobat X | Mac OS
Adobe Acrobat X Pro * Activation and registration
http://www.adobe.com/content/dam/Adobe/en/accessibility/products/acrobat/pdfs/acrobat-xi-p ro-accessibility-best-practice…
They are useful resources.
Regards
Rajshree -
I received a 2012 MacBook Pro INtel i7 for my birthday this May 2013. It constantly drops my airport connection. My ancient 2006 MacBook Pro has no problem connecting to airport, nor staying connected. I've had to write this message several times as I keep losing the airport connection and have to reconnect. BTW: I am less than five feet from the airport base.
Thanks for help.After trying all of the above the suggestions, the problem returned as before. However, after digging some more I discovered that the issue appears to lie with the 10.4.10 version of the Mac OS; when I checked the software log under the system profiler I noticed that I had installed that update at about the time my Airport problems began. Apple then quietly released a v 1.1 combo update to 10.4.10 on July 2nd, which once installed appears to have resolved the problem. You can find the download at http://www.apple.com/support/downloads/macosx10410comboupdatev11intel.html
What's curious is that originally Apple listed that the v 1.1 combo update resolved some issues with RAW image data, and some sound problems, which don't seem to have anything to do with Airport. -
HELP MY MAC BOOK PRO has a problem.
FROM A FEW DAYS AFTER A FEW HOURS .. PART ONE FAN AS HE HAD SUPERHEATED PC! is NORMAL?? do??Firstly, you aren't in MacBook Pro forum.
MacBook Pro
http://www.apple.com/support/macbookpro/
CAPS isn't really of any help reading or getting help.
Try monitoring the temperature so you know for sure. Yes it can run hot.
http://www.bresink.de/osx/TemperatureMonitor.html
You may want to boot from your original OS X DVD - hold D on statup - and that way run Apple Hardware Test
Maybe you are looking for
-
I can't open iTunes message says" can't read itunes library.itl because it was created with a newer version" thank you for any help!
-
How to save LabView data into diadem format ?
I have a project that needed me to save in Diadem format. Is it the correct way to save in Diadem format ? Why the length of the data is only limited to 10000 and then will create another tab ? And how to edit the header name ( what I want is Time,Ch
-
Oracle Hyperion Workspace and Hyperion Interactive Reporting
Hi All, I'm in a urgent need of downloading Hyperion workspace. I was able to download and install Hyperion Shared Services under "Hyperion Foundation Service". But There are no Hyperion Workspace to download under "Hyperion Foundation Service". More
-
Time estimation for Web Dynpro development
Hello all, i would like to know if someone could tell me how much time do we have to estimate when using web dynpros to recreate R/3 transactions (with the convert tool) ? In fact we must make an offer for a customer and would like to use Web Dynpros
-
Dynamic Linking fails aerendercore non-responsive.
I sent this bug to Adobe: ******BUG****** Concise problem statement: Dynamic Link Server fails to connect in Media Encoder--aerendercore in non-repsonsive state. Steps to reproduce bug: 1. Usually happens after using Media Encoder several times in a