荔园在线

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

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


发信人: tang (独孤九剑), 信区: Program
标  题: MSVC-BEGINNERS Digest - 16 May 1998 to 17 May 199
发信站: BBS 荔园晨风站 (Wed May 20 00:54:01 1998), 转信

There are 5 messages totalling 177 lines in this issue.

Topics of the day:

  1. Fastest way to insert into a Jet DB?
  2. Please Help! COM Example
  3. quick question...
  4. Displaying a progress bar during loading
  5. How Do You Kill the Thing ???
NT4.0, SP3, VC++5.0

Gang

        I have a DAO based MFC app that inserts 40 byte rows into a JET 3.5 MDB.

All of the machines on our network run NT 4.0 WKS and have the MDAC 1.5c
installed.

If I

1. insert the data into the MDB across the network
2. insert the data into the MDB on the same machine

I find that in either case I can only insert 3400 rows/second. I am only
inserting  136 kbytes/second into the mdb. I have seen bottle necks like
this before
with MS SQL 6.5. When I eventually wrote code that was DBLIB based and
commited once
for every 10,000 rows inserted, I found that I could fly.

What is the secret to insert 34,000 rows/second into JET? The bandwidth
requirements are a modest 1.3mbytes/second. Is there some sort of parameter
that I need
to turn on/off? Is there an undocumented API?

Bob


=============================================
186,000 miles per second -- It's not just a good idea, it's the law!
There are a bunch on your cd in the samples directory, but I'd reccommend
reading up on it first. I'm in the middle of learning this stuff, and the
Dr. Gui columns on the MSDN (http://www.microsoft.com/msdn) web site are
very helpful!

Bill

On Saturday, May 16, 1998 11:51 PM, Ronald Coleman
[SMTP:dlcom@EARTHLINK.NET] wrote:
> Hi Everyone,
>
> Could anyone direct me to where I could find some good examples on
> COM?  I
> am interested in examples using VC++/MFC and C++.
>
> TIA
> Ronald
> dlcom@earthlink.net
Ok, first, mm/dd/yy is WRONG! WRONG! It's 1998! USE A FOUR-DIGIT YEAR!!!!

Ah, now that I've gotten that out of my system (I'm on a contract doing Y2K
assurance, so I get to see that kind of thing all day...)

Read up on archives. Read about CString and CDate. Look at CStdioFile. Check
out the CArray template classes.

Bill

On Saturday, May 16, 1998 4:27 PM, Franklyn Colebrooke, Jr.
[SMTP:colebrookef@POST.UWSTOUT.EDU] wrote:
> MSVC 5. Win95.
>
> Ok, summer is here and I'm finally taking the time to use MSVC as it
> should
> be used. The question I have to ask is something I can do by creating
> my
> own files and the like and continuing from there, but this time I
> choose to
> use the MFC wizard. I've created a MDI and now wish to add some code
> to it.
> I have a file that has its contents in this format:
>
> Day, mm/dd/yy      00      00      00      00      00      00
>             $000,000,000
>
> (the spacing is not exact)
>
> now what I would like to do (well, step one) is to open the file, read
> in
> the data, store it into a node, and then display the contents. I
> choose the
> linked list option because the size of this list will vary. Could
> someone
> guide me in the right direction as to how I might accomplish this
> through
> use of the class wizard or whatever else would be appropriate?
>
> *side note- I don't wish to make the date a string, because I wish to
> perform calculations with it.
>
> Trying to learn-
> Franklyn
Hi,

Is it possible to display a Dlg or progress screen during OnOpenDocument ?

My prog takes a couple of seconds to load and process a file and I`d like to
show a progress bar. Problem is I can`t figure out how to display a screen
until OnOpenDocument returns.

Thanks in advance

Graham.
Hello, all.

Can anyone suggest a way to terminate IE4 from another application (no, not
from Netscape - <g>).  Ordinarily, if you use ::SendMessage(), passing the

correct handle of a running app as the first parameter, WM_CLOSE for the
second parameter, and zeroes for the third and fourth parameters, the app
"goes away" nicely, thankyouverymuch.  But NOT IE4, which is the first app
I've run across that seems "immune" to this.

There obviously must be a way to do it, because Task manager can certainly
make quick work of dispatching IE4.  I've only tried using the handle of IE4's
main frame window (that's all I've ever needed before with every other
victim), but is there something else that has to be destroyed first?  Does the
fact that IE4 is an ActiveX critter make any difference?

I'm doing this from within an MFC app, but I'm not using MFC's SendMessage(),
which only works on windows within the app that calls the function (as it
doesn't take an external handle as one of its parameters).  Calling the
Windows API SendMessage() function has worked with every other app before, but
IE4 has me "stumped".

Does anyone have any suggestion on "how to kill the thing"?  Thanks.

Environment:  VC++ 5.0, Win 95/NT4, IE4 (4.01).

Fred
--
        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软件 网络书店