荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑), 信区: Program
标  题: MSVC-BEGINNERS Digest - 21 May 1998 to 22
发信站: BBS 荔园晨风站 (Mon May 25 18:16:13 1998), 转信

There are 5 messages totalling 156 lines in this issue.

Topics of the day:

  1. Porting Problem
  2. MFC DAO Parameter statement
  3. OnFileSendMail() - help needed?
  4. HELP! Can't get started.
  5. browse for folder
There is something called thunking... try using thunk compiler
-----Original Message-----
From: Badimela Sreedhar <bsree@WIPHYD.GE.COM>
To: MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU
<MSVC-BEGINNERS@MAELSTROM.STJOHNS.EDU>
Date: Wednesday, January 04, 1995 1:20 PM
Subject: [MSVC] Porting Problem


>Hi,
>
>        I am working on a 16-bit(VC++ 1.5) to 32-bit(VC++ 4.0) conversion.
>        While converting I've got a problem.
>
>        I've replaced libraries that were used in the 16-bit
>        with the 32-libraries.
>
>        The compiler is not complaining any thing, but the linker
>        is giving the following error.
>
>        error LNK2001: unresolved external symbol symbol_name
>
>        Can any one help me in solving the problem.
>
>Regards
>Sreedhar
>
>
>
>
>
>
>
>
>
>*****************************************
>*      Sreedhar  Badimela,
>*      Wipro Systems, III Floor,
>*      1-8-448, Begumpet,
>*      Secunderabad,
>*      ANDHRA PRADESH - INDIA
>*      Ph: 866008 ext:4312
>*      E-Mail : bsree@wiphyd.ge.com
>******************************************
MSVC++5, Win95

I've derived a CDAORecordSet and set its SQL string to something like this:

PARAMETERS [FamilyIDFilter] TEXT; SELECT Names.[FirstName], Names.[LastName]
FROM (Families RIGHT JOIN Names ON Families.FamilyID = Names.FamilyID) WHERE
Names.[FamilyID] Like [FamilyIDFilter];

The [FamilyIDFilter] parameter is set during a DataExchange function within
the CDAORecordSet object.

Here's my problem:
I want the recordset to select either a specified family name or ANY family
name. In MS Access, this SQL statement displays an input box. If the user
keys ' * ' the query selects all records. But when I've tried to implement
the same thing here, I get a run-time exception that says "Data type
mismatch in criteria expression."

I think I need to define my parameter as text in order to pass it the
wildcard ' * ' character; however, the field Names.[FamilyID] is defined in
the table as Long.

Is this where I'm going wrong?

DAO help says "Like *" is a valid expression. How can I pass the wildcard as
a parameter if the data type is Long? I guess I could skip the PARAMETER
step and build a SELECT statement dynamically if I have to.

But why can't I get this to work? HELP!
Hi all,

   IF any one had used OnFileSendMail() function

   can help me how and where to implement this?

  thanks,
//Ramki.
>I am learning MSVC on my own.  I have read a few books and have MSVC++
>5.0 but I am having trouble getting started.

Do you want to use the MFC framework? If not, create a new 'console'
project and start from the ground up - like a simple DOS / C program. If
you're using MFC, have you worked your way through the Scribble tutorial?
And/or any others? If so, why not work backwards through that program's
code gradually replacing the graphic specific code with your own? Or you
could grab a skeletal program and incorporate your own stuff - look up
HELLO and HELLOAPP in the docs.

One last word. Don't feel dispirited at your apparent lack of progress.
Everything I have _ever_ read on the subject of starting out has been at
best desperately humorous, at worst downright gloomy. When you feel
yourself plummeting down that most slippery of slopes, the OO learning
curve, take heart! You're definitely in the majority!

HTH,
- Steve Wilson <sirocco@cableinet.co.uk>
(Listowner MSVC-BEGINNERS)
>- Find something on the web.

Yup. I believe the code guru has something - see this list's 'welcome' doc
for the url. If not, I've got two variations of tweaked system code - if
you want I could send them to you.

- Steve Wilson <sirocco@cableinet.co.uk>
(Listowner MSVC-BEGINNERS)
--
        There are these few times I feel lonely for you.
        But I know this shade of blue will soon pass through!
        I must be strong without you by my side!
        I can see forever you are my light.

※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店