473,796 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PCI Slot/Card Question

If you are dealing with one PCI card, is there a way (from within a
dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6,
etc.)? It doesn't matter if the solution is MFC, or straight C++/C,
just has to be on a Windows machine.

Mar 9 '06 #1
10 2549
st*******@gmail .com wrote:
If you are dealing with one PCI card, is there a way (from within a
dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6,
etc.)? It doesn't matter if the solution is MFC, or straight C++/C,
just has to be on a Windows machine.


Not without Windows specific calls, and that's off topic here.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mar 9 '06 #2
I don't suppose you happen to know what those are do you?

Mar 9 '06 #3
st*******@gmail .com wrote:
I don't suppose you happen to know what those are do you?


What part of "off-topic" is unclear to you?
Mar 9 '06 #4
How does your post pertain to this topic at all? Victor, Did you have
a suggestion on how to do this in C++? If not, why post? My original
post states it doesn't matter if it is an MFC solution.

This is a C++ question which is on-topic. I did post this in a Windows
forum as well looking for the Windows call. Since Ben knows there are
windows call to accomplish this task, I thought he could save me a lot
of time by just telling me what they are. This way I could tear the
Windows calls apart since I would actually prefer a C++ solution.

This is a C++ forum and I have a C++ question, so stop saying its
Off-Topic. An MFC solution may be, but again, I do not require one.

So does anyone else have any C++ related suggestions? If not, please
don't post and waste mine or your time.

Mar 9 '06 #5
st*******@gmail .com wrote:
How does your post pertain to this topic at all? Victor, Did you have
a suggestion on how to do this in C++? If not, why post? My original
post states it doesn't matter if it is an MFC solution.
I said it cannot be done without Windows specific extensions. This
group is about C++ language only.
This is a C++ question which is on-topic.
It is not on topic, it cannot be done with C++ alone.
I did post this in a Windows
forum as well looking for the Windows call.
multiposting rather than cross-posting is generally considered rude on
usenet. It wastes time in duplicated effort.
Since Ben knows there are
windows call to accomplish this task, I thought he could save me a lot
of time by just telling me what they are.
I do not know that there *are* Windows calls, I can only speculate that
there may be, and that they would be Windows specific. This is only one
problem of posting to the wrong group - simply that we do not and cannot
know the extent of every possible external library.
This way I could tear the
Windows calls apart since I would actually prefer a C++ solution.
There is no C++ solution. It is specific to the operating system, be
that Windows, Linux, DOS, or something else. C++ does not have access
to this information directly.
This is a C++ forum and I have a C++ question,
This is a C++ _language_ group, you do not have a C++ _language_
question, as I said in my first reply.
so stop saying its Off-Topic.
It is off topic.
An MFC solution may be, but again, I do not require one.
You require an OS specific solution, as I said in my first reply.
So does anyone else have any C++ related suggestions?
I think I've already mentioned that this cannot be done in C++, without
additional, OS specific libraries.
If not, please
don't post and waste mine or your time.


You do not have a C++ question, so stop posting and wasting *our* time.
I have already told you that your question is off topic. What part of
off topic do you not understand?

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mar 9 '06 #6
On 9 Mar 2006 08:41:56 -0800 st*******@gmail .com waved a wand and this
message magically appeared:
So does anyone else have any C++ related suggestions? If not, please
don't post and waste mine or your time.


*PLONK*

I suggest others do the same.

--
http://www.munted.org.uk

"Honestly, what can I possibly say to get you into my bed?" - Anon.
Mar 9 '06 #7
st*******@gmail .com wrote:
How does your post pertain to this topic at all?
My post pertain to this topic and to any other topic because it is related
to the _topicality_ of this newsgroup. Post on topicality are _always_
on topic.
Victor, Did you have
a suggestion on how to do this in C++? If not, why post?
Because you seem to have a misunderstandin g on where to post.
My original
post states it doesn't matter if it is an MFC solution.
MFC is off-topic here _as_well_.
This is a C++ question which is on-topic.
You've received one answer from Ben, you've also received one answer from
me to your duplicate post. There is *no* solution for your problem in the
C++ _language_. Can you get *that* into your head? C++ _language_ does
*not* have any means to manipulate or control or query *hardware*. None.
Whatsoever. Any solution is platform- or OS-specific. And insisting on
discussing those _here_ is bad manner. OS- and platform-specific things
are _off-topic_ in comp.lang.c++.
I did post this in a Windows
forum as well looking for the Windows call. Since Ben knows there are
windows call to accomplish this task, I thought he could save me a lot
of time by just telling me what they are.
Sure he could. Only *not here*. Windows API is off-topic here.
This way I could tear the
Windows calls apart since I would actually prefer a C++ solution.
There is *no* C++ solution. There _cannot_ be a C++ solution.
This is a C++ forum and I have a C++ question, so stop saying its
Off-Topic.
You *don't* have a C++ question. You have a PCI question. If you do not
understand the difference, I am sorry, but it's not my problem, is it?
An MFC solution may be, but again, I do not require one.

So does anyone else have any C++ related suggestions? If not, please
don't post and waste mine or your time.


Read the Welcome message, read the FAQ, _before_ posting. Understand the
topicality of the newsgroup and try to contain your attitude.

V
--
Please remove capital As from my address when replying by mail
Mar 9 '06 #8
This forum should be called "comp.lang. c++ just as long as you don't
ask any questions about anything in specific".

Ben - Thanks for trying to help.
Victor - If you don't have any suggestions or ideas pertaining
*directly* to the original post or a comment, don't waste everyone's
time by posting garbage trying to make other people look dumb. It is a
complete waste of time and should never be done.

With that said, I am never going to look at this post again.

Mar 9 '06 #9
st*******@gmail .com wrote:
This forum should be called "comp.lang. c++ just as long as you don't
ask any questions about anything in specific".

Ben - Thanks for trying to help.
Victor - If you don't have any suggestions or ideas pertaining
*directly* to the original post or a comment, don't waste everyone's
time by posting garbage trying to make other people look dumb. It is
a complete waste of time and should never be done.


Well, that's good, because I won't ever see any of yours.

*plonk*

Brian
Mar 9 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3925
by: sam1967 | last post by:
I know how to build forms with ASP and process user input. Now i want to take credit card payments via a form. i will then download the details and process them via our credit card machine. do i just create a regular ASP form and use a certificate on the server to encrypt the data ? ie https://server/getpaymentform.asp there is nothing special about the form is there ? it is just the same as the form i have been using for user input.
2
1466
by: Mark | last post by:
We have a particular software project where a minority of the function calls are taking up a majority of the cpu time. (they do a lot of geometric, trig and other functions related to vectors corresponding to tracks in 3d space) We think there's not much more that can be done to speed these functions up on the computer we have (or can have). The question is, aren't there available now hardware cards that you can load with particular...
1
1979
by: shane.tietjen | last post by:
If you are dealing with one PCI card, is there a way (from within a dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6, etc.)? It doesn't matter if the solution is MFC, or straight C++/C, just has to be on a Windows machine. Thanks in advance.
1
2526
by: Fred B | last post by:
I am launching a new thread from my application's main process (using VB.net 2003), and I can't get the child to receive the parameter I'm attempting to send it in a named data slot. The code for launching the thread: Dim NewThread As New Thread(AddressOf LaunchCommThread) NewThread.AllocateNamedDataSlot("Offset") NewThread.IsBackground = True NewThread.Name = SIMclass.SIM(1).strCtrlDesignator
4
12223
by: sallyk07 | last post by:
The question says: Design and implement a class called Card that represents a standard playing card. Each card has a suit and a face value. Create a program that deals 20 random cards. this is the card class i made but i dont know if it right...i also don't know how to creatre a program that deals random cards. public class Card { public final static int spades = 0,hearts = 1, diamonds = 2, clubs = 3; public final...
6
1893
by: JNeko | last post by:
Hello all, awesome site! I guess I am technically not a beginner in JAVA, but from my code you would not realize it! I don’t expect anyone to help me with this, but I figure I might as well as try and ask. Any help is really appreciated; this should be a piece of cake…driving me crazy. I am writing a simple program (from a book for fun) that creates a deck of cards, shuffles them, gives the user a card, and asks if the next card will be...
4
2116
by: Tracid83 | last post by:
hi, I use wmi to get slot information from remote computer.I want to know the name of the device connected on the specific slot. Thanks for your help Tracid
2
1940
by: Carnell, James E | last post by:
I am thinking about purchasing a book, but wanted to make sure I could get through the code that implements what the book is about (Artificial Intelligence a Modern Approach). Anyway, I'm not a very good programmer and OOP is still sinking in, so please don't answer my questions like I really know anything. MY QUESTION: What is a slot? In class Object below the __init__ has a slot. Note: The slot makes use of a data object called...
6
27416
by: dirtysouth6975 | last post by:
I need some help. I am getting an error of: local function definitions are illegal. What does this mean? Can anybody help me out a little? Thank you. //Specification: This program simulates a three //wheeled slot machine. Each wheel will randomly //display three numbers. When the numbers on the //wheels match the user is award points. The Slot //machine requires the user to enter tokens to play. #include <iostream> #include <ctime> ...
0
9683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10231
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.