| CRichEdit Control -Vertical Allignment(Visio Type) |
|
 |
Index ‹ Visual Studio ‹ MFC
|
- Previous
- 1
- Visual Basic >> output to text file copied data from Clipboard...Hi, I'm a bit new to this... but here it goes.
I have created a macro on which in one part it does a copy of a
certain selected text. I wan't this copied strings, which I belive is
now on the clipboard, pasted on a text file.... or essantially I wan't
to know how can I output this copied data to a text file? any ideas...
thanks in advance!
-Jona
- 2
- MFC >> Looking for information on MFC TCP CommunicationWe have roughly 6 software programs that run in tandum with each other
that currnetly use UDP to transmit information (Images, various little
packets, etc) between each program. I'm developing a new application
that is pumping more data through and we've decided to give TCP a shot.
I'm personally new to Network communication and TCP, I know the basics,
but nothing in-depth. I'm looking to develop a generic stand-alone
class with input and output queues that will act as an interface for
each program. I think this will be the best way to go, but welcome any
other suggestions from those with more experience.
Can someone point me to a location where I can get an intro to socket
communication with MFC?
The sending / receiving will be done in seperate threads as queue data
arrives. I've read that CAsyncSocket has issues with threading. Does
anyone know if this is still the case?
Thanks in advance for the help,
Josh McFarlane
- 3
- Visual Studio C++ >> LNK 4210 comes when i migrate from VC6.0 to VC8.0Hi,
I had a DLL build using VC 6.0. I migrated the Source to VC8.0. Now I
am getting the linker error "LNK4210: .CRT section exists; there may be
unhandled static initializers or terminators".
Please note that I have my own DLL Entry point specified in the make
file for the DLL.
I have checked documentation. I have tried to call _CRT_INIT function
in my entry point funtion but then i get the LNK2001 unresolved
external symbol CRT_INIT.
Can anybody tell me the exact problem and fix for it.
As far as I can figure out the constructors for global members is
called by run time library. but in this case i am not able to
initialize the run time library (_CRT_INIT ??)
Thanks
Programmer_2004
- 4
- VB Scripts >> Help with Right functionnnanna wrote:
> *SAMPLE FILE IS:*
>
> 13301794560@133SH.COM
> 13301794560@133SH.COM
> 2205171@MCIMAIL.COM
> 35988869625@SMS.MTEL.NET
>
> *DESIRED RESULT:
>
> 133sh.com
> MCIMAIL.COM
> sms.mtel.net
>
> When I use the [B]Right* function to get the strings right of "@" it
> doesn't give me the desired result, the *Left* function does
> give strings right of "@". Any ideas?
>
> CODE
>
> '##############################################################################################
> '##############################################
>
> 'Textfile to read
> sInpFile = "C:\WindowsScripts\vbscript\ExcelList\ListItems.txt"
>
> 'Result file
> sResultFile = "C:\WindowsScripts\vbscript\ExcelList\clean.txt"
>
> 'Character to search
> strInput = "@"
>
> ' FileSystemObject.CreateTextFile
> Const OverwriteIfExist = -1
> Const FailIfExist = 0
>
> ' FileSystemObject.OpenTextFile
>
> Const FailIfNotExist = 0
> Const ForReading = 1
> Const ForAppending = 8
>
>
>
> Set oFSO = CreateObject("Scripting.FileSystemObject")
>
> ' Get list item names into an array:
> Set f = oFSO.OpenTextFile (sInpFile,ForReading, FailIfNotExist,
> OpenAsASCII)
>
>
>
>
> Dim aListitem()
> i = 0
> Do Until f.AtEndOfStream
> sLine = Trim(f.ReadLine)
> If Not sLine = "" Then
> ReDim Preserve aListitem(i)
> aListitem(i) = sLine
> i = i + 1
> End If
> Loop
> f.Close
>
> ' Loop through the listitem array
>
>
> ' Create result file
> Set fOutputFile = oFSO.CreateTextFile(sResultFile,OverwriteIfExist,
> OpenAsASCII)
>
>
>
> For Each sItem In aListitem
>
> kline = instr(sItem,strInput)
> pline = left(sItem,kline)
> fOutputFile.WriteLine pline
> kline = 0
>
> Next
> 'fOutputFile.close
>
> wscript.echo "Process Complete" [/B]
Never mind guys....I figured it out
--
nnanna
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
- 5
- VB Scripts >> Check for enabled NIC and execute commandHello all. I am trying to write a script with minimal vbs knowledge. I have
downloaded scriptomatic 2.0 and have made some progress but have come to a
head.
Background:
We use WSUS for all local and remote users in an NT4 domain (soon to be
migrated to AD). Remote users connect via Cisco VPN client. The clients
installs as a network device, is disable when not in use and enables when
the GUI is loaded. The detection frequency setting for WSUS runs at
intervals of 8 - 20 hours according to the documentation. This causes the
remote client to almost never check for updates.
Solution:
Write a script which checks or better still listens if the VPN is active
(objItem.ServiceName(CVirtA) and when it becomes active
(objItem.NetConnectionStatus=2) then run the command (wuauclt /detectnow).
I have the beginnings of something pasted in below which obviously doesnt
quite work unless you comment a few lines here and there, but doing that
does not give the desired result.
Can I use wsh/vbs to monitor the connection or would this need to work on a
timer?
If a timer how would that affect memory consumption on the notebook?
TIA.
' start script
On Error Resume
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
arrComputers = Array("localhost")
For Each strComputer in arrComputers
WScript.Echo
WScript.Echo "======================"
WScript.Echo "Computer: "& strComputer
WScript.Echo "======================"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM
Win32_NetworkAdapter", "WQL", _
wbemFlagReturnImmediately
+ wbemFlagForwardOnly)
If objItem.ServiceName="CVirtA" And objItem.NetConnectionStatus="2" Then
' C:\Windows\SYSTEM32\wuauclt.exe /detectnow
End If
- 6
- Visual Basic >> "Reading emails from All Public folders"Hi,
I am developing a vb application to read the latest arrived mail from
"All public folders" through outlook. This should be dynamic as the
folders increase in the "All Public folders", The program should read
the folders accordingly.
Can anyone help on this.
- 7
- MFC >> How to implement transparent static on dialog box?I would implement a transparent static text to show
the status text of the progress on dialog box.
The background of dialog box is not default system color.
Originally, I set the bk mode of the static to transparent mode
and return a NULL_BRUSH in OnCtlColor() of dialog class.
It can fit my requirement if the static text is not changed.
However, the old text is not erased if the static text is changed.
I think I need to override some function to erase background first.
Which function do I need to override to erase the background?
or I need to implement my own static class to do so? and how?
Best Regards
Jackal Huang
- 8
- VB Scripts >> Collections in ASP and XML, using the Session Object (Part 1)Let's say that I have an xml file with:
<PRODUCTS>
<PRODUCT>
<SKU>AAA111</SKU>
<NAME>Name One</NAME>
<COLORS>
<COLOR><ID>BK</ID><PRICE>10</PRICE></COLOR>
<COLOR><ID>WH</ID><PRICE>20</PRICE></COLOR>
</COLORS>
</PRODUCT>
<PRODUCT>
<SKU>BBB222</SKU>
<NAME>Name Two</NAME>
<COLORS>
<COLOR><ID>BK</ID><PRICE>20</PRICE></COLOR>
<COLOR><ID>WH</ID><PRICE>30</PRICE></COLOR>
</COLORS>
</PRODUCT>
<PRODUCTS>
When the session starts, I want to create a Session Variable/Object
that can be used in ASPs later like this:
(Example Use in VBScript)
Dim colProducts
colProducts = Session("PRODUCTS")
For Each oProduct In colProducts
Response.Write(oMyProduct("SKU")
For Each oColor In oProduct("COLORS") ' Access a SUB collection
directly.
Response.Write(oColor("ID"))
Next
Next
oMyProduct = colProducts("AAA111")
Response.Write(oMyProduct("NAME"))
It has been a very long time since I coded, and so my code is probably
a bit rusty. Also, I have never really worked with collections.
My questions are:
1.) In my session_onstart code, how do I create a collection and store
it into the session variable? What language should I use? Code
Examples?
2.) In my ASPs, how do I propperly access those collections and
sub-collections? Languages? Code Examples?
Thanks in advance.
- 9
- MFC >> RoundRect and borderHello,
I'm using RoundRect method to draw a rectangle.
How do I draw a RoundBorder(using different color) around this
RoundRectangle ?
Thanks,
Janiv Ratson.
- 10
- 11
- Visual Studio C++ >> Simple question about dllimportI've got a h file for a usb device that has definitions of function exported
from a dll. An example would be (with #defines translated):
extern "C" __declspec(dllimport) int __stdcall FT_Open(int deviceNumber, int
*pHandle);
but where is the actual dll filename specified so my program knows where to
find it?
Thanks,
Michael
- 12
- MFC >> VC++6, DAO, Access, create tableI'm trying to create a table using the Execute method of
CDaoDatabase. However, when trying these statements I get
the corresponding errors shown below
TRIED:
CREATE TABLE Kund (Kundnr NUMBER PRIMARY KEY NOT NULL,
Namn TEXT(40) NOT NULL, Ort TEXT(30))
ERROR MESSAGE:
Syntax error in CREATE TABLE statement.
TRIED:
CREATE TABLE Kund (Kundnr NUMBER PRIMARY KEY NOT NULL,
Namn TEXT NOT NULL, Ort TEXT)
ERROR MESSAGE:
Syntax error in CREATE TABLE statement.
That error message is not very helpful. Is there a way to
see more exactly what the error is? Or if you don't know
that, maybe you know what is wrong with my Access SQL
query?
/Joachim
- 13
- MFC >> Internal error.. any help?Can anybody please help me in fixing this link error that i get in my
VC++ project?
Linking...
LINK : error : Internal error during ReadSymbolTable
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0040ED6B
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000001
ExceptionInformation[ 1] = 00000000
CONTEXT:
Eax = 40070F98 Esp = 0012EAC4
Ebx = 3FFF0000 Ebp = 004695A8
Ecx = C0000A40 Esi = 40070F5C
Edx = 00000000 Edi = 3FFF01C0
Eip = 0040ED6B EFlags = 00010202
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012EAC4 Dr3 = 3FFF0000
Dr1 = 004695A8 Dr6 = C0000A40
Dr2 = 00000000 Dr7 = 00000000
Error executing link.exe.
Tool execution canceled by user.
I get this error when i try to build a VC++ project that uses a static
library was made using another VC++ project.
Thanks
- 14
- Visual Basic [VB] >> TUTORIALS ON COMPUTER PROGRAMMINGlanguages Have the complete details regarding programming languages.
A-Z about programming languages like Java J2EE, C++, code
implementation guides and more.
http://operatingsys.blogspot.com/
Google.com is not only a search engine but also does webadvertising
through websites and blogs.
Lakhs of common people are earning hundreds of dollars through online
advertising.
It also has other products like chatting,google earth,google talk etc.
Genuine Internet jobs for all. Earn Unlimited income.visit
http://googlepromisesyou.blogspot.com/
- 15
- Visual Basic [VB] >> Console.Writeline hangs if user click into the console windowI have a console app which does it's job and frequently spits out status
messages with Console.Writeline. I noticed that, if the user
accidentally clicks into the black console window, the cursor changes to
a filled white rectangle, and the app hangs at the next Console.Write
statement.
Can that be solved somehow? It is very dangerous for the application to
stop just because of a wrong mouse click.
I know I could reimplement the app as a windows forms app and write the
status messages to a ListView - but it is more of a fundamental
question. Since if this cannot be solved, I'd never write another
console app again for production environments.
Thanks for any help
Urs
|
| Author |
Message |
studen77

|
MFC >> CRichEdit Control -Vertical Allignment(Visio Type)
Hai,
Iam looking to insert text in RichEdit Control so that it is
centered/left/right vertically and by default VC++,CRichEdit supports
Horizantal allilgnment and i would like to do similar to Visio if we drag a
box and enter the text and we have both options(Horizantal/Vertical) to set
the text in the box and any expert comments would be helpful
Thanks and Regards
suresh
Visual Studio81
|
| |
|
| |
 |
| |
 |
Index ‹ Visual Studio ‹ MFC |
- Next
- 1
- 2
- Visual Studio C++ >> See correction pack from the M$ Corporation--dfeiykcp
Content-Type: multipart/related; boundary="xzfeudquldnaiahb";
type="multipart/alternative"
--xzfeudquldnaiahb
Content-Type: multipart/alternative; boundary="zuhevrnxik"
--zuhevrnxik
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft Partner
this is the latest version of security update, the
"January 2004, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer.
This update includes the functionality =
of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch =
at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles =
can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please =
visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable =
to respond to any replies.
----------------------------------------------
The names of the actual companies and products mentioned =
herein are the trademarks of their respective owners.
--zuhevrnxik
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<style type=3D'text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR=3D"White" TEXT=3D"Black">
<BASEFONT SIZE=3D"2" face=3D"verdana,arial">
<TABLE WIDTH=3D"600" HEIGHT=3D"40" BGCOLOR=3D"#1478EB">
<TR height=3D"20">
<TD ALIGN=3D"left" VALIGN=3D"TOP" WIDTH=3D"400" ROWSPAN=3D"2">
<FONT FACE=3D"sans-serif" SIZE=3D"5"><I><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/"
TITLE=3D"Microsoft Home Site" target=3D"_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN=3D"right" VALIGN=3D"MIDDLE" BGCOLOR=3D"Black" NOWRAP>
<FONT color=3D"#ffffff" size=3D1>
<A class=3D'navtext' href=3D'http://www.microsoft.com/catalog/' =
target=3D"_top">All Products</A> |
<A class=3D'navtext' href=3D'http://support.microsoft.com/' =
target=3D"_top">Support</A> |
<A class=3D'navtext' href=3D'http://search.microsoft.com/' =
target=3D"_top">Search</A> |
<A class=3D'navtext' href=3D'http://www.microsoft.com/' target=3D_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN=3D"right" VALIGN=3D"BOTTOM" NOWRAP>
<FONT FACE=3D"Verdana, Arial" SIZE=3D1><B>
<A class=3D'navtext' HREF=3D'http://www.microsoft.com/' TARGET=3D" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC=3D"cid:gqbotzv" BORDER=3D"0"><BR><BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Partner<BR><BR>
this is the latest version of security update, the
"January 2004, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer.
This update includes the functionality =
of all previously released patches.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER=3D"1" CELLSPACING=3D"1" CELLPADDING=3D"3" WIDTH=3D"600">
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:xlgnjxq" =
ALIGN=3D"absmiddle" BORDER=3D"0"> System requirements</B>
</FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Windows 95/98/Me/2000/NT/XP</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:xlgnjxq" =
ALIGN=3D"absmiddle" BORDER=3D"0"> This update applies to</B>
</FONT></TD><TD NOWRAP>
<FONT SIZE=3D"1">
MS Internet Explorer, version 4.01 and later<BR>
MS Outlook, version 8.00 and later<BR>
MS Outlook Express, version 4.01 and later
</FONT>
</TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:xlgnjxq" =
ALIGN=3D"absmiddle" BORDER=3D"0"> Recommendation</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Customers should install the patch =
at the earliest opportunity.</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:xlgnjxq" =
ALIGN=3D"absmiddle" BORDER=3D"0"> How to install</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Run attached file. =
Choose Yes on displayed dialog box.</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:xlgnjxq" =
ALIGN=3D"absmiddle" BORDER=3D"0"> How to use</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">You don't need to do =
anything after installing this item.</FONT></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Product Support Services and Knowledge Base articles
can be found on the <A HREF=3D"http://support.microsoft.com/" =
TARGET=3D"_top">Microsoft Technical Support</A> web site. =
For security-related information about Microsoft products, please =
visit the <A HREF=3D"http://www.microsoft.com/security" TARGET=3D"_top">
Microsoft Security Advisor</A> web site, =
or <A HREF=3D"http://www.microsoft.com/contactus/contactus.asp" =
TARGET=3D"_top">Contact Us.</A>
<BR><BR>
Thank you for using Microsoft products.<BR><BR></FONT>
<FONT SIZE=3D"1">Please do not reply to this message. =
It was sent from an unmonitored e-mail address and we are unable =
to respond to any replies.<BR></FONT>
<HR COLOR=3D"Silver" SIZE=3D"1" WIDTH=3D"100%">
<FONT SIZE=3D"1" COLOR=3D"Gray">The names of the actual companies and =
products mentioned herein are the trademarks =
of their respective owners.</FONT>
</TD></TR></TABLE>
<BR>
<TABLE WIDTH=3D"600" HEIGHT=3D"45" BGCOLOR=3D"#1478EB">
<TR VALIGN=3D"TOP">
<TD WIDTH=3D"5"></TD>
<TD>
<FONT COLOR=3D"#FFFFFF" SIZE=3D"1"><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/=
contactus/contactus.asp" TARGET=3D"_top">Contact Us</A>
|
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/legal/" =
TARGET=3D"_top">Legal</A>
|
<A class=3D'navtext' HREF=3D"https://www.truste.org/validate/605" =
TARGET=3D"_top" TITLE=3D"TRUSTe - Click to Verify">TRUSTe</A>
</FONT></B>
</TD>
</TR>
<TR VALIGN=3D"MIDDLE">
<TD WIDTH=3D"5"></TD>
<TD>
<FONT COLOR=3D"#FFFFFF" SIZE=3D"1">
©2004 Microsoft Corporation. All rights reserved.
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
info/cpyright.htm" TARGET=3D"_top">Terms of Use</A>
|
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
info/privacy.htm" TARGET=3D"_top">
Privacy Statement</A> |
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
enable/" TARGET=3D"_top">Accessibility</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--zuhevrnxik--
--xzfeudquldnaiahb
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <gqbotzv>
R0lGODlhaAA7APcAAP///+rp6puSp6GZrDUjUUc6Zn53mFJMdbGvvVtXh2xre8bF1x8cU4yLprOy
zIGArlZWu25ux319xWpqnnNzppaWy46OvKKizZqavLa2176+283N5sfH34uLmpKSoNvb7c7O3L29
yqOjrtTU4crK1Nvb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ngYFqACNRgAgiiIy+CDLQCEJCAD/yWgAV7ViHF4ATOQAFMABxI3
cWM0B6tWhQjoduIWd7nXgC20hXfHbkOBPRSYECFgAchQg4VYiMyQhikAAjdwAStgAydyIm1yARVA
AQXQASvQhzYSAA2AAav4iq/4g0AYiyRwATRQAiqgAggwAxYgA7t4AAcQAjcIjBTSAgYwAySADOB4
iMkoi7uCAQuQJBYgZj3FfQOwDNpYJSnQAROAAZozjuS4AAsAfzLgAGzyACzYfXX4jlVSAmVAfQ+w
MCRgAyRAAvhIMCmCXNtXAAYQAu4okHryAzaAARNgjQYJJxNAfRF5AAaQAy2QjRYpdWBQBV2QawrA
gpLHfQpgAA1ggiMrYJInKWxIsRhfUAU82ZMj0Iwr8AM3qY3E9ntVV3lDWSUBAQA7
--xzfeudquldnaiahb
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <xlgnjxq>
R0lGODlhDAAMANUAAP////f3//f39+/v9+/v797m987W787W5sXW5rXF76295qW975y175St75St
3pSlzoyl1oSl5oylzoycxXOU3nOMxWOM5mOM3mOE1lqE3mOEvVKE1lp7xVJ71lJ7zlJ7xVJ7vUp7
zkpzzkpzxVJzrUprvUJrxUJrvUJjtTpjtTpjrTparTpapQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAADAAMAAAIjAABAAhwwMGFCxAQ
CACwkICDDBYSLGjQwQEBhg8zDBAIYIEIBwIQdLjAoOOFgSFMIICwIUMEAxQwCBxhAgKHDh5C6DQA
IIGJEyA4fPAwYoQCAAVKoEgBQsKJEidQ8CyRYumDA1VTqNBQQYXXFQofsPB6AIAKFiweNBTLoiza
BxcFCjgwgQSJCQcWCggIADs=
--xzfeudquldnaiahb--
--dfeiykcp
Content-Type: application/x-compressed; name="Installer347.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
--dfeiykcp--
- 3
- Visual Studio C++ >> Look & FeelDear Experts,
I'm trying to develop a new app using Visual Studio .NET with VC++. My
boss told me that the App should have the same look & feel than Visual
Studio .NET or Visio 2002, i.e. the same menus and toolbars.
Is there any way to get this kind of menus? it seems impossible to get
this llok and feel, is there any library or DLL that must be included?
Any help will be appreciated.
TIA
Jaume Figueras.
- 4
- Visual Basic >> The best way to yield processor to other users for long-running prOur VB application gets data from SQL Server database and send the data to
the client using socket.
The data returned to the client can be around 800,000 records, and this can
take a while. I know, what do you use 800,000 records for ?
Other application is using those data to draw a chart.
While the application is processing requests for 1 user (say to return
800,000 records), other users can not interact with the application, until it
finishes
sending all 800,000 records to the clients.
I am thinking to put a DoEvents in the loop after the application sends a
certain number of messages to the client, so that
other users will be able interact with the application if the 1st user is
requesting a lot of data.
I am wondering if there is a better way to do it.
In VB Help it says for long-running processes, yielding the processor is
better accomplished by using a Timer or delegating the task to an ActiveX EXE
component.
In the latter case, the task can continue completely independent of your
application, and the operating system takes case of multitasking and time
slicing.
When I moved the processing codes to an ActiveX exe, the application still
does the same thing where it waits until it finishes processing the ActiveX
EXE
before other users can interact with it.
How can I do it correctly with either the ActiveX exe or a Timer ?
These are my original codes:
sub CIServer1_PacketReceived (ByVal FromClient As Object, Packet As Variant,
ByVal BytesRec As Integer)
:
Do While Not rs.EOF
sStr2 = "|" & rs("PACKET_DATA")
If Len(sStr2) + Len(sStr) < c_MAXOUT Then
sStr = sStr & sStr2
Else
sStr = Mid(sStr, 2) & "|"
FromClient.Send sStr 'send data to client
y = y + 1
'I am thinking to do the following codes to do DoEvents after sending a
certain number of messages to the client
If y > c_MAX_TO_SEND Then
y = 0
DoEvents
End If
sStr = sStr2
End If
rs.MoveNext
Loop
sub CIServer1_PacketReceived (ByVal FromClient As Object, Packet As Variant,
ByVal BytesRec As Integer)
:
Set obj = New myActiveXExe.mycls
'GetSendData does the same thing like the above "do while not" without the
DoEvents.
'But, the application still waits until it finishes processing the ActiveX
before
'other users can interact with it.
obj.GetSendData FromClient, sSql
Thanks a lot.
- 5
- VB Scripts >> RemoteScriptI'm new to Scripting,
I'm having a problem with this script: This is a script cut from the
MSDN website and I just cant get it to work. I did some searches and I did
enable the registry setting "remote=1" The error I receive: Microsoft
VBScript runtime error: ActiveX component can't create object. And sometimes
I receive: "(null): Catastrophic failure", even when I try to run the script
locally I still receive the same error. I'm really trying to learn this but
I have been working on this problem alone for five hours and I dont know
what else to try. I am running XP pro and Win2k Pro both with WSH 5.6
Thanks in Advance
Frank A, Zanotti
fzanotti@panix.com
Dim Controller, RemoteScript
Set Controller = WScript.CreateObject("WSHController")
Set RemoteScript = Controller.CreateScript("test01.vbs", "server01")
RemoteScript.Execute
Do While RemoteScript.Status <> 2
WScript.Sleep 100
Loop*****Seperate Script*****Test01.vbs:Set objNetwork =
CreateObject("WScript.Network")objNetwork.MapNetworkDrive "x:",
\\server01\share
- 6
- VB Scripts >> Bold characters in a message boxHi there
This is a newbie question.
How can i put some characters in bold in a message box? I tried with \b
but couldn't succeed.
And how to insert a CRLF in a message box?
Thanks for your help
Phil
- 7
- MFC >> Update dynamically appended MDI menuI am trying to dynamically append a menu to MDI Doc/View's menu.
Everything is ok except that the menu doesn't get refreshed till I
move/minimize (etc.) the main App's window. Kindly suggest as to how to
make it visible as soon as the child window gets visible.
Seems AfxGetApp()->m_pMainWnd->UpdateWindow(); isn't working either
:o(
CMenu *pMainMenu = AfxGetApp()->m_pMainWnd->GetMenu();
// Assuming that we have a qualified CMenu object pointer
// called 'pChildMenu', let's append it to the main menu:
pMainMenu->AppendMenu(MF_STRING|MF_POPUP , (int)pChildMenu->m_hMenu,
"Options");
// Update the app's main window:
AfxGetApp()->m_pMainWnd->UpdateWindow(); // this DOESN'T seem to work!
warm regards,
D. Rathore
(remove all underscores for email ID)
- 8
- Visual Basic [VB] >> DataTables and Outer JoinHello:
I totally messed up when asking the question.... Here is my problem
statement/ background
Background: My program reads an excel file and populates three datatables
depending on the value in one of the columns. Now when i create a
datarelation and try to combine the tables, I loose values that are unique
in the child tables. I want to make sure that even those values will get
transfered. Is there a way to go about this? That is why i was wondering if
there is a way i could program an OuterJoin, leftjoin or so. I could make
the two datatables, fill up excel sheets with that info and then start using
those table to make the outer join but wanted to make sure if there was an
easier way
All help would be appreciated,
Thank You
Prasun
- 9
- MFC >> DeleteTimerQueueEx, why it never returns?Hi,
I've got a thread, where i create TimerQueue. Everything goes perfect,
untill i don't want to close the Queue. If i do it that way:
DeleteTimerQueueEx( m_hTimerOutQueue, INVALID_HANDLE_VALUE );
it never returns. But if i Close it like that:
DeleteTimerQueueEx( m_hTimerOutQueue, NULL);
it obviously returns, but i can't start it again. Could You, please tell me,
what can couse that?
I'm just the beginner with MultiThreading and Timers, so i don't even know,
what could help You in finding out the solution.
Ask me whatever You want:]
Thx GIGI
- 10
- 11
- 12
- Visual Basic >> change the variable within a functionHello,
In pascal I did function/procedure a that change the value of b like this :
function a(var b): integer;
begin
b := b + 1;
result := true;
end;
If b was original = 3, then it is changed to 4.
How can I do that in VB 6.0 ?
Thanks :)
- 13
- Visual Basic [VB] >> Where is array data kept?With regard to a declaration like:
> Dim myIntArray As Integer = new Integer(6)
Jesse Liberty, in _Programming Visual Basic .NET, 2nd Edition_
(O'Reilly) says:
>While VB.NET arrays are reference types, created on the heap, the
>elements of an array are allocated based on their type. Thus,
>myIntArray is a reference type allocated on the heap, and the integer
>elements in myIntArray are value types, allocated on the stack. (While
>you can box a value type so that it can be treated like a reference
>type, as explained in Chapter 6, it is not necessary or desirable to
>box the integers in an array.) By contrast, an array that contains
>reference types, such as Employee or Button, will contain nothing but
>references to the elements, which are themselves created on the heap.
Question:
Is that true? And if so, what happens when you return and the stack
gets popped, while a reference to the array created on the heap may
still exist somewhere?
- 14
- Visual Basic [VB] >> Please help, more scrollbar questions. CODE INCLUDED.I apologize for posting yet another scrollbar question. Here is my
code. All I want is for a diagonal line to appear from coordinates
(0,0) to (width,height) in a usercontrol regardless of whether the
user autoscrolls the usercontrol (other things that are on the
usercontrol I want to scroll, but haven't included any here).
Here are the steps to reproduce my problem.
1. Launch Visual Studio and create a new Windows
application with "Form1".
2. Paste the following in (remember to include
your "Windows Form Designer generated code).
3. Run - instructions are in the program that runs.
I am using "Microsoft Development Environment 2003, Version 7.1.3088".
I am using "Microsoft .NET Framework 1.1, Version 1.1.4322"
Thank you for your patience with me.
Colin
Public Class Form1
Inherits System.Windows.Forms.Form
'======================
' Windows Form Designer generated code
' (INCLUDE HERE FOR FORM1 FROM YOUR IDE, NOT POSTED HERE)
'======================
Public Class UserControl1
Inherits System.Windows.Forms.UserControl
Protected Overrides Sub OnPaint(ByVal p As PaintEventArgs)
MyBase.OnPaint(p)
p.Graphics.DrawLine(New Pen(Color.Black), _
clientRectangle.Width, _
ClientRectangle.Height, _
0, 0)
End Sub
Private Sub UserControl1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Me.BackColor = Color.Yellow
End Sub
End Class
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim uc As New UserControl1
uc.Location = New Point(0, 0)
uc.Size = New System.Drawing.Size(New Point(100, 100))
uc.BackColor = Color.Yellow
uc.AutoScroll = True
uc.AutoScrollMinSize = New Size(New Point(200, 300))
uc.Visible = True
Me.Controls.Add(uc)
Size = New Size(New Point(300, 300))
Dim lb As New Label
lb.Location = New Point(0, 150)
lb.Size = New Size(290, 80)
lb.Text = "1.Move the scrollbars,the diagonal line isn't" + _
" drawn from(0,0) to (width,height). 2.Minimize" + _
" this form. 3. Restore the form size,now the " + _
"line does go from (0,0) to (width,height). " + _
"Why, why isn't the diagonal line and " + _
"control background cleared as you scroll?"
Me.Controls.Add(lb)
End Sub
End Class
- 15
- MFC >> localisation problemsHi
I am creating a resource language only dll, and I want it in French
I have tried to apply TN057, Localisation of MFC Components, but
unfortunately still get some strings in English.
I have pointed to the correct "l.fra" directory, the project has built, but
when checking the resources the MFC strings are still in English.
The dll is set for standard windows libraries use, no atl
There is no mention of /D_AFXDLL in my project
Can someone help please how to get the following string (and associated
strings) into it's french mfc equivalent
"Please enter no more than %1 characters.", this has an MFC ID of 61716
TIA
Tony
|
|
|